repo.or.cz
/
tftp-hpa.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tftpd: allow IPv4/6-specific remapping rules
[tftp-hpa.git]
/
lib
/
getopt.h
blob
c1ad5619d9275aa0ec4de33bef24277e43010eee
1
#ifndef LIB_GETOPT_H
2
#define LIB_GETOPT_H
3
4
extern
char
*
optarg
;
5
extern
int
optind
,
opterr
,
optopt
;
6
7
struct
option
{
8
const char
*
name
;
9
int
has_arg
;
10
int
*
flag
;
11
int
val
;
12
};
13
14
enum
{
15
no_argument
=
0
,
16
required_argument
=
1
,
17
optional_argument
=
2
,
18
};
19
20
int
getopt_long
(
int
,
char
*
const
*,
const char
*,
21
const struct
option
*,
int
*);
22
23
#endif
/* LIB_GETOPT_H */