Lines Matching defs:args
56 char *args[128];
155 } else if (strncmp(line, "args:", 5) == 0) {
157 if (args[nargs] != NULL)
158 free(args[nargs]);
160 args[nargs = 0] = strtok(&line[6], WS);
161 if (args[nargs] == NULL)
162 errx(1, "Missing args");
164 args[nargs] = strdup(args[nargs]);
165 while ((args[++nargs] = strtok(NULL, WS)) != NULL)
166 args[nargs] = strdup(args[nargs]);
183 errx(1, "result: without args");
185 while ((c = getopt_long(nargs, args, optstring,