Lines Matching defs:getopt
2 NOTE: getopt is now part of the C library, so if you don't know what
28 #include "getopt.h"
54 /* Unlike standard Unix `getopt', functions like `getopt_long'
61 Using `getopt' or setting the environment variable POSIXLY_CORRECT
70 /* For communication from `getopt' to the caller.
71 When `getopt' finds an option that takes an argument,
80 and for communication between successive calls to `getopt'.
82 On entry to `getopt', zero means this is the first call; initialize.
84 When `getopt' returns -1, this is the index of the first of the
100 system's own getopt implementation. */
305 (aside from the initial '-') are option characters. If `getopt'
309 If `getopt' finds another option character, it returns that character,
310 updating `optind' and `nextchar' so that the next call to `getopt' can
313 If there are no more option characters, `getopt' returns -1.
338 When `getopt' finds a long-named option, it returns 0 if that option's
1111 /* glibc gets a LSB-compliant getopt.
1112 Standalone applications get a POSIX-compliant getopt. */
1120 getopt (int argc, char *const *argv, const char *optstring)
1131 the above definition of `getopt'. */
1143 c = getopt (argc, argv, "abc:d:0123456789");
1181 printf ("?? getopt returned character code 0%o ??\n", c);