Lines Matching defs:getopt
2 NOTE: getopt is now part of the C library, so if you don't know what
23 __RCSID("$NetBSD: getopt.c,v 1.2 2016/05/17 14:00:09 christos Exp $");
27 /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
43 contain conflicting prototypes for getopt. */
69 /* Unlike standard Unix `getopt', functions like `getopt_long'
76 Using `getopt' or setting the environment variable POSIXLY_CORRECT
83 #include "getopt.h"
86 /* For communication from `getopt' to the caller.
87 When `getopt' finds an option that takes an argument,
96 and for communication between successive calls to `getopt'.
98 On entry to `getopt', zero means this is the first call; initialize.
100 When `getopt' returns -1, this is the index of the first of the
116 system's own getopt implementation. */
328 (aside from the initial '-') are option characters. If `getopt'
332 If `getopt' finds another option character, it returns that character,
333 updating `optind' and `nextchar' so that the next call to `getopt' can
336 If there are no more option characters, `getopt' returns -1.
361 When `getopt' finds a long-named option, it returns 0 if that option's
1164 /* glibc gets a LSB-compliant getopt.
1165 Standalone applications get a POSIX-compliant getopt. */
1173 getopt (int argc, char *const *argv, const char *optstring)
1184 the above definition of `getopt'. */
1196 c = getopt (argc, argv, "abc:d:0123456789");
1234 printf ("?? getopt returned character code 0%o ??\n", c);