Classes | Macros | Functions | Variables
getopt.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  option
 

Macros

#define no_argument   0
 
#define optional_argument   2
 
#define required_argument   1
 

Functions

int _getopt_internal (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind, int long_only)
 
int getopt ()
 
int getopt_long (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind)
 
int getopt_long_only (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind)
 

Variables

char * optarg
 
int opterr
 
int optind
 
int optopt
 

Macro Definition Documentation

◆ no_argument

#define no_argument   0

Definition at line 97 of file getopt.h.

◆ optional_argument

#define optional_argument   2

Definition at line 99 of file getopt.h.

◆ required_argument

#define required_argument   1

Definition at line 98 of file getopt.h.

Function Documentation

◆ _getopt_internal()

int _getopt_internal ( int  argc,
char *const *  argv,
const char *  shortopts,
const struct option longopts,
int *  longind,
int  long_only 
)

Definition at line 500 of file getopt.c.

◆ getopt()

int getopt ( )

◆ getopt_long()

int getopt_long ( int  argc,
char *const *  argv,
const char *  shortopts,
const struct option longopts,
int *  longind 
)

Definition at line 60 of file getopt1.c.

◆ getopt_long_only()

int getopt_long_only ( int  argc,
char *const *  argv,
const char *  shortopts,
const struct option longopts,
int *  longind 
)

Definition at line 72 of file getopt1.c.

Variable Documentation

◆ optarg

char* optarg

Definition at line 116 of file getopt.c.

◆ opterr

int opterr

Definition at line 151 of file getopt.c.

◆ optind

int optind

Definition at line 131 of file getopt.c.

◆ optopt

int optopt

Definition at line 157 of file getopt.c.



sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Mon Feb 28 2022 23:41:52