"Fossies" - the Fresh Open Source Software Archive 
Member "scponly-20110526/scponly_getopt.h" (8 Sep 2010, 455 Bytes) of package /linux/privat/old/scponly-20110526.tgz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
2 #define no_argument 0
3 #define required_argument 1
4 #define optional_argument 2
5 #endif
6
7 typedef struct option
8 {
9 const char *name;
10 int has_arg;
11 int *flag;
12 int val;
13 } option;
14
15 int
16 netbsd_getopt_long(int nargc, char * const *nargv, const char *options,
17 const struct option *long_options, int *idx);
18
19 extern char *optarg;
20 extern int optind, opterr, optopt;
21