Lines Matching defs:args
54 char *args[100];
70 } else if (strncmp(line, "args:", 5) == 0) {
72 if (args[nargs] != NULL)
73 free(args[nargs]);
75 args[nargs = 0] = strtok(&line[6], WS);
76 if (args[nargs] == NULL)
77 errx(1, "missing args at line %ld",
80 args[nargs] = strdup(args[nargs]);
81 while ((args[++nargs] = strtok(NULL, WS)) != NULL)
82 args[nargs] = strdup(args[nargs]);
87 args[i]);
100 errx(1, "result: without args:");
103 while ((c = getopt(nargs, args, optstring)) != -1) {