Lines Matching refs:cmdline
132 char **parse_argv(char *cmdline, int *argc) in parse_argv() argument
136 char **result = calloc(strlen(cmdline), sizeof(char *)); in parse_argv()
137 char *output = cmdline; in parse_argv()
144 while (isspace(*cmdline)) cmdline++; /* skip leading spaces */ in parse_argv()
147 c = *cmdline++; in parse_argv()
153 while (isspace(*cmdline)) cmdline++; /* skip leading spaces */ in parse_argv()
154 if (!*cmdline) return result; /* avoid empty arg if trailing ws */ in parse_argv()
230 char* cmdline; in join_executable_and_args() local
237 cmdline = (char*)calloc(len, sizeof(char)); in join_executable_and_args()
238 sprintf(cmdline, "%s", executable); in join_executable_and_args()
241 sprintf(cmdline+len, " %s", args[counter]); in join_executable_and_args()
244 return cmdline; in join_executable_and_args()
257 char *cmdline; in run() local
324 cmdline = join_executable_and_args(ptr, newargs, parsedargc + argc); in run()
325 return create_and_wait_for_subprocess(cmdline); in run()