Update version for release 0.49
[tftp-hpa.git] / lib / getopt.h
blobc1ad5619d9275aa0ec4de33bef24277e43010eee
1 #ifndef LIB_GETOPT_H
2 #define LIB_GETOPT_H
4 extern char *optarg;
5 extern int optind, opterr, optopt;
7 struct option {
8 const char *name;
9 int has_arg;
10 int *flag;
11 int val;
14 enum {
15 no_argument = 0,
16 required_argument = 1,
17 optional_argument = 2,
20 int getopt_long(int, char *const *, const char *,
21 const struct option *, int *);
23 #endif /* LIB_GETOPT_H */