Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
406 bytes
|
Rev | Line | |
---|
[e16e8f2] | 1 | #ifndef _GETOPT_H |
---|
| 2 | #define _GETOPT_H |
---|
| 3 | |
---|
| 4 | /* (Very slightly) adapted from klibc */ |
---|
| 5 | |
---|
| 6 | struct option { |
---|
| 7 | const char *name; |
---|
| 8 | int has_arg; |
---|
| 9 | int *flag; |
---|
| 10 | int val; |
---|
| 11 | }; |
---|
| 12 | |
---|
| 13 | enum { |
---|
| 14 | no_argument = 0, |
---|
| 15 | required_argument = 1, |
---|
| 16 | optional_argument = 2, |
---|
| 17 | }; |
---|
| 18 | |
---|
| 19 | extern char *optarg; |
---|
| 20 | extern int optind, opterr, optopt; |
---|
| 21 | |
---|
| 22 | extern int getopt_long(int, char *const *, const char *, |
---|
| 23 | const struct option *, int *); |
---|
| 24 | |
---|
| 25 | #endif /* _GETOPT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.