QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
getopt.c File Reference

Macros

#define _(msgid)   (msgid)
 
#define _NO_PROTO
 
#define const
 
#define GETOPT_INTERFACE_VERSION   2
 
#define NONOPTION_P   (argv[optind][0] != '-' || argv[optind][1] == '\0')
 
#define SWAP_FLAGS(ch1, ch2)
 

Enumerations

enum  { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }
 

Functions

int _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only)
 
char * getenv (const char *)
 
int getopt (int argc, char *const *argv, const char *optstring)
 

Variables

int __getopt_initialized
 
char * optarg
 
int opterr = 1
 
int optind = 1
 
int optopt = '?'
 

Macro Definition Documentation

#define _ (   msgid)    (msgid)
#define _NO_PROTO
#define const
#define GETOPT_INTERFACE_VERSION   2
#define NONOPTION_P   (argv[optind][0] != '-' || argv[optind][1] == '\0')
#define SWAP_FLAGS (   ch1,
  ch2 
)

Enumeration Type Documentation

anonymous enum
Enumerator
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Function Documentation

int _getopt_internal ( int  argc,
char *const argv,
const char *  optstring,
const struct option longopts,
int longind,
int  long_only 
)
char* getenv ( const char *  )
int getopt ( int  argc,
char *const argv,
const char *  optstring 
)

Variable Documentation

int __getopt_initialized
char* optarg
int opterr = 1
int optind = 1
int optopt = '?'