Home | History | Annotate | Download | only in libiberty

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
28 /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
72 contain conflicting prototypes for getopt. */
95 /* This version of `getopt' appears to the caller like standard Unix `getopt'
99 As `getopt' works, it permutes the elements of ARGV so that,
109 #include "getopt.h"
111 /* For communication from `getopt' to the caller.
112 When `getopt' finds an option that takes an argument,
121 and for communication between successive calls to `getopt'.
123 On entry to `getopt', zero means this is the first call; initialize.
125 When `getopt' returns -1, this is the index of the first of the
134 /* Formerly, initialization of getopt depended on optind==0, which
135 causes problems with re-calling getopt as programs generally don't
156 system's own getopt implementation. */
187 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
280 is valid for the getopt call we must make sure that the ARGV passed
281 to getopt is that one passed to the process. */
474 (aside from the initial '-') are option characters. If `getopt'
478 If `getopt' finds another option character, it returns that character,
479 updating `optind' and `nextchar' so that the next call to `getopt' can
482 If there are no more option characters, `getopt' returns -1.
507 When `getopt' finds a long-named option, it returns 0 if that option's
978 getopt (int argc, char *const *argv, const char *optstring)
992 the above definition of `getopt'. */
1004 c = getopt (argc, argv, "abc:d:0123456789");
1042 printf ("?? getopt returned character code 0%o ??\n", c);