1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef _GETOPT_H_
- #define _GETOPT_H_
- #define no_argument 0
- #define required_argument 1
- #define optional_argument 2
- #ifdef __cplusplus
- extern "C" {
- #endif
- struct option {
-
- const char *name;
-
- int has_arg;
-
- int *flag;
-
- int val;
- };
- int getopt_long(int, char * const *, const char *,
- const struct option *, int *);
- extern int optreset;
- extern char *optarg;
- extern int opterr;
- extern int optind;
- extern int optopt;
- #ifdef __cplusplus
- };
- #endif
- #endif
|