Last change
on this file since 337 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
559 bytes
|
Rev | Line | |
---|
[337] | 1 | #ifndef _GETOPT_H
|
---|
| 2 | #define _GETOPT_H
|
---|
| 3 |
|
---|
| 4 | #ifdef __cplusplus
|
---|
| 5 | extern "C" {
|
---|
| 6 | #endif
|
---|
| 7 |
|
---|
| 8 | int getopt(int, char * const [], const char *);
|
---|
| 9 | extern char *optarg;
|
---|
| 10 | extern int optind, opterr, optopt, optreset;
|
---|
| 11 |
|
---|
| 12 | struct option {
|
---|
| 13 | const char *name;
|
---|
| 14 | int has_arg;
|
---|
| 15 | int *flag;
|
---|
| 16 | int val;
|
---|
| 17 | };
|
---|
| 18 |
|
---|
| 19 | int getopt_long(int, char *const *, const char *, const struct option *, int *);
|
---|
| 20 | int getopt_long_only(int, char *const *, const char *, const struct option *, int *);
|
---|
| 21 |
|
---|
| 22 | #define no_argument 0
|
---|
| 23 | #define required_argument 1
|
---|
| 24 | #define optional_argument 2
|
---|
| 25 |
|
---|
| 26 | #ifdef __cplusplus
|
---|
| 27 | }
|
---|
| 28 | #endif
|
---|
| 29 |
|
---|
| 30 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.