root/getopt_long.h

Revision 81ac86a15e3940ff0b787698853fb6a6157f800b, 0.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

initial import with Ecelerity bits removed and some autoconf glue added in. Could certainly use some work on the build/install. Needs shared lib support for multiple platforms

  • Property mode set to 100644
Line 
1 #ifndef GETOPT_LONG_H
2 #define GETOPT_LONG_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 extern char *optarg;
9 extern int optind;
10 extern int opterr;
11 extern int optopt;
12
13 struct option {
14   const char *name;
15   int has_arg;
16   int *flag;
17   int val;
18 };
19
20 #define no_argument             0
21 #define required_argument       1
22 #define optional_argument       2
23
24 extern int getopt_long (int argc, char *const *argv, const char *shortopts,
25                         const struct option *longopts, int *longind);
26
27 #if defined(REPLACE_GETOPT) && defined(WIN32)
28 extern int getopt(int nargc, char * const *nargv, const char *options);
29 #endif
30
31 #ifdef __cplusplus
32 }  /* Close scope of 'extern "C"' declaration which encloses file. */
33 #endif
34
35 #endif
Note: See TracBrowser for help on using the browser.