HomeSort by: relevance | last modified time | path
    Searched refs:optstring (Results 1 - 7 of 7) sorted by relevancy

  /src/tests/lib/libc/stdlib/
h_getopt.c 45 char *line, *ptr, *optstring = NULL, *result = NULL; local in function:main
54 if (optstring)
55 free(optstring);
56 optstring = strtok(&line[6], WS);
57 if (optstring == NULL)
58 errx(1, "missing optstring at line %ld",
60 optstring = strdup(optstring);
62 fprintf(stderr, "optstring = %s\n", optstring);
    [all...]
h_getopt_long.c 47 char *line, *eptr, *longopt, *ptr, *optstring = NULL, *result = NULL; local in function:main
59 if (strncmp(line, "optstring:", 10) == 0) {
60 if (optstring)
61 free(optstring);
62 optstring = strtok(&line[11], WS);
63 if (optstring == NULL)
64 errx(1, "missing optstring at line %ld",
66 optstring = strdup(optstring);
170 if (optstring == NULL
    [all...]
  /src/bin/pax/
getoldopt.c 36 getoldopt(int argc, char **argv, const char *optstring,
65 return getopt_long(argc, argv, optstring,
68 return getopt(argc, argv, optstring);
72 place = strchr(optstring, c);
  /src/usr.bin/passwd/
passwd.c 252 char optstring[64]; /* if we ever get more than 64 args, shoot me. */ local in function:main
301 optstring[0] = '\0';
309 if ((oopt = strchr(optstring, *curopt)) == NULL) {
310 optstring[j++] = *curopt;
313 optstring[j++] = *curopt;
315 optstring[j] = '\0';
326 while ((ch = getopt(argc, argv, optstring)) != -1)
  /src/usr.sbin/eeprom/
main.c 90 const char *optstring = "-cf:iv"; local in function:main
92 const char *optstring = "-cf:i"; local in function:main
95 while ((ch = getopt(argc, argv, optstring)) != -1)
  /src/sbin/fsck_lfs/
main.c 78 const char *optstring = "ab:dfi:m:npPqUy"; local in function:main
88 while ((ch = getopt(argc, argv, optstring)) != -1) {
  /src/bin/sh/
options.c 559 error("usage: getopts optstring var [arg]");
673 * end of input. If optstring is NULL, then there are no options, and
681 nextopt(const char *optstring)
694 if (optstring == NULL) /* not processing the "option" */
697 if (optstring == NULL)
700 for (q = optstring ; *q != c ; ) {

Completed in 15 milliseconds