Lines Matching refs:argv
65 dupargv (char **argv) in dupargv() argument
70 if (argv == NULL) in dupargv()
74 for (argc = 0; argv[argc] != NULL; argc++); in dupargv()
78 for (argc = 0; argv[argc] != NULL; argc++) in dupargv()
80 int len = strlen (argv[argc]); in dupargv()
82 strcpy (copy[argc], argv[argc]); in dupargv()
182 char **argv = NULL; in buildargv() local
198 if (argv == NULL) in buildargv()
206 nargv = (char **) xrealloc (argv, maxargc * sizeof (char *)); in buildargv()
208 argv = nargv; in buildargv()
209 argv[argc] = NULL; in buildargv()
271 argv[argc] = xstrdup (copybuf); in buildargv()
273 argv[argc] = NULL; in buildargv()
281 return (argv); in buildargv()
297 writeargv (char **argv, FILE *f) in writeargv() argument
304 while (*argv != NULL) in writeargv()
306 const char *arg = *argv; in writeargv()
332 argv++; in writeargv()
480 countargv (char **argv) in countargv() argument
484 if (argv == NULL) in countargv()
486 for (argc = 0; argv[argc] != NULL; argc++) in countargv()
515 char **argv; in main() local
522 if ((argv = buildargv (*test)) == NULL) in main()
528 for (targs = argv; *targs != NULL; targs++) in main()
534 freeargv (argv); in main()