Home | History | Annotate | Download | only in stdlib

Lines Matching defs:optstring

45 	char *line, *ptr, *optstring = NULL, *result = NULL;
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);
96 while ((c = getopt(nargs, args, optstring)) != -1) {
99 if ((ptr = strchr(optstring, c)) == NULL) {