:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / include / getopt.h
1 /* temporary header for getopt. Please remove this file when MingW ships with
2    its own */
3
4 #ifndef __GETOPT_H_INCLUDED
5 #define __GETOPT_H_INCLUDED
6
7 #ifdef __cplusplus
8 extern "C"
9 {
10 #endif
11
12 extern char *optarg;
13 extern int optind, opterr, optopt;
14
15 #define no_argument       (0)
16 #define required_argument (1)
17 #define optional_argument (2)
18
19 struct option
20 {
21  const char *name;
22  int has_arg;
23  int *flag;
24  int val;
25 }; 
26
27 extern int getopt(int, char * const [], const char *);
28
29 extern int getopt_long
30 (
31  int,
32  char * const [],
33  const char *,
34  const struct option *,
35  int *
36 );
37  
38 extern int getopt_long_only
39 (
40  int,
41  char * const [],
42  const char *,
43  const struct option *,
44  int *
45 );
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* __GETOPT_H_INCLUDED */
52
53 /* EOF */