From 171277632c95892bd36eee608669a7f4340172c4 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Wed, 18 May 2016 17:17:16 +0200 Subject: [PATCH] Improved argument parsing --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 5c0c224..885af1e 100644 --- a/main.c +++ b/main.c @@ -118,8 +118,9 @@ int run_ghdl(char *command, ...) { start = buf; arrc = 0; + //printf("** BUF: %s\n", buf); do { // Split into params - if (*ptr == '(') { + if (*ptr == ' ') { arr[arrc++] = start; break; } @@ -144,7 +145,6 @@ int run_ghdl(char *command, ...) { } fflush(stdout); } - printf("\n"); return pclose(proc); }