Lines Matching defs:getopt
1 /* $NetBSD: getopt.c,v 1.2 2016/01/14 00:34:53 christos Exp $ */
4 NOTE: getopt is now part of the C library, so if you don't know what
26 /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
42 contain conflicting prototypes for getopt. */
68 /* This version of `getopt' appears to the caller like standard Unix `getopt'
72 As `getopt' works, it permutes the elements of ARGV so that,
82 #include "getopt.h"
85 /* For communication from `getopt' to the caller.
86 When `getopt' finds an option that takes an argument,
95 and for communication between successive calls to `getopt'.
97 On entry to `getopt', zero means this is the first call; initialize.
99 When `getopt' returns -1, this is the index of the first of the
115 system's own getopt implementation. */
327 (aside from the initial '-') are option characters. If `getopt'
331 If `getopt' finds another option character, it returns that character,
332 updating `optind' and `nextchar' so that the next call to `getopt' can
335 If there are no more option characters, `getopt' returns -1.
360 When `getopt' finds a long-named option, it returns 0 if that option's
1163 getopt (int argc, char *const *argv, const char *optstring)
1176 the above definition of `getopt'. */
1188 c = getopt (argc, argv, "abc:d:0123456789");
1226 printf ("?? getopt returned character code 0%o ??\n", c);