Lines Matching refs:getopt
2 NOTE: getopt is now part of the C library, so if you don't know what
48 /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. */
71 contain conflicting prototypes for getopt. */
82 /* This version of `getopt' appears to the caller like standard Unix `getopt'
86 As `getopt' works, it permutes the elements of ARGV so that,
96 #include "getopt.h"
98 /* For communication from `getopt' to the caller.
99 When `getopt' finds an option that takes an argument,
108 and for communication between successive calls to `getopt'.
110 On entry to `getopt', zero means this is the first call; initialize.
112 When `getopt' returns EOF, this is the index of the first of the
137 system's own getopt implementation. */
168 `--' can cause `getopt' to return EOF with `optind' != ARGC. */
264 (aside from the initial '-') are option characters. If `getopt'
268 If `getopt' finds another option character, it returns that character,
269 updating `optind' and `nextchar' so that the next call to `getopt' can
272 If there are no more option characters, `getopt' returns `EOF'.
297 When `getopt' finds a long-named option, it returns 0 if that option's
650 getopt (argc, argv, optstring)
667 the above definition of `getopt'. */
681 c = getopt (argc, argv, "abc:d:0123456789");
719 printf ("?? getopt returned character code 0%o ??\n", c);