Lines Matching defs:getopt
27 #include "getopt.h"
48 [1] http://pubs.opengroup.org/onlinepubs/000095399/functions/getopt.html
49 [2] http://www.kernel.org/doc/man-pages/online/pages/man3/getopt.3.html
50 [3] http://www.freebsd.org/cgi/man.cgi?query=getopt&sektion=3&manpath=FreeBSD+9.0-RELEASE
52 int getopt(int argc, char* const argv[], const char* optstring) {
64 /* If, when getopt() is called argv[optind] is a null pointer, getopt()
69 /* If, when getopt() is called *argv[optind] is not the character '-',
70 getopt() shall return -1 without changing optind. */
74 /* If, when getopt() is called argv[optind] points to the string "-",
75 getopt() shall return -1 without changing optind. */
79 /* If, when getopt() is called argv[optind] points to the string "--",
80 getopt() shall return -1 after incrementing optind. */
92 returned by getopt(). */
95 /* The getopt() function shall return the next option character (if one is
115 option-argument, and getopt() shall return an error indication.
139 /* If getopt() encounters an option character that is not contained in
156 [1] http://www.kernel.org/doc/man-pages/online/pages/man3/getopt.3.html
174 return getopt(argc, argv, optstring);