HomeSort by: relevance | last modified time | path
    Searched defs:optstring (Results 1 - 5 of 5) 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/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/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/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)

Completed in 115 milliseconds