home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
e
/
emxdev8f.zip
/
GETOPT.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-18
|
904b
|
34 lines
/* getopt (emx+gcc) */
#if !defined (_GETOPT_H)
#define _GETOPT_H
#if defined (__cplusplus)
extern "C" {
#endif
#if !defined (_GETOPT_C)
extern char *optarg; /* argument of current option */
extern int optind; /* index of next argument; default=0: initialize */
extern int opterr; /* 0=disable error messages; default=1: enable */
extern char *optswchar; /* characters introducing options; default="-" */
#endif
extern enum _optmode
{
GETOPT_UNIX, /* options at start of argument list (default) */
GETOPT_ANY, /* move non-options to the end */
GETOPT_KEEP, /* return options in order */
} optmode;
int getopt (int argc, char **argv, __const__ char *opt_str);
#if defined (__cplusplus)
}
#endif
#endif /* !defined (_GETOPT_H) */