Home | History | Annotate | Download | only in lib

Lines Matching defs:getopt

0 /* Getopt for GNU.
2 NOTE: getopt is part of the C library, so if you don't know what
27 #include "getopt.h"
45 /* This version of 'getopt' appears to the caller like standard Unix 'getopt'
53 Using 'getopt' or setting the environment variable POSIXLY_CORRECT
62 /* For communication from 'getopt' to the caller.
63 When 'getopt' finds an option that takes an argument,
72 and for communication between successive calls to 'getopt'.
74 On entry to 'getopt', zero means this is the first call; initialize.
76 When 'getopt' returns -1, this is the index of the first of the
92 system's own getopt implementation. */
298 (aside from the initial '-') are option characters. If 'getopt'
302 If 'getopt' finds another option character, it returns that character,
303 updating 'optind' and 'nextchar' so that the next call to 'getopt' can
306 If there are no more option characters, 'getopt' returns -1.
331 When 'getopt' finds a long-named option, it returns 0 if that option's
1152 /* glibc gets a LSB-compliant getopt.
1153 Standalone applications get a POSIX-compliant getopt. */
1161 getopt (int argc, char *const *argv, const char *optstring)
1185 the above definition of 'getopt'. */
1197 c = getopt (argc, argv, "abc:d:0123456789");
1235 printf ("?? getopt returned character code 0%o ??\n", c);