Home | History | Annotate | Download | only in lib

Lines Matching defs:getopt

0 /* Getopt for GNU.
2 NOTE: getopt is now part of the C library, so if you don't know what
27 #include "getopt.h"
49 /* Unlike standard Unix `getopt', functions like `getopt_long'
56 Using `getopt' or setting the environment variable POSIXLY_CORRECT
65 /* For communication from `getopt' to the caller.
66 When `getopt' finds an option that takes an argument,
75 and for communication between successive calls to `getopt'.
77 On entry to `getopt', zero means this is the first call; initialize.
79 When `getopt' returns -1, this is the index of the first of the
95 system's own getopt implementation. */
300 (aside from the initial '-') are option characters. If `getopt'
304 If `getopt' finds another option character, it returns that character,
305 updating `optind' and `nextchar' so that the next call to `getopt' can
308 If there are no more option characters, `getopt' returns -1.
333 When `getopt' finds a long-named option, it returns 0 if that option's
1106 /* glibc gets a LSB-compliant getopt.
1107 Standalone applications get a POSIX-compliant getopt. */
1115 getopt (int argc, char *const *argv, const char *optstring)
1126 the above definition of `getopt'. */
1138 c = getopt (argc, argv, "abc:d:0123456789");
1176 printf ("?? getopt returned character code 0%o ??\n", c);