libxcoder  3.5.1
ni_getopt_logan.h File Reference

Go to the source code of this file.

Data Structures

struct  option
 

Macros

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

Functions

LIB_API_GETOPT int getopt (int argc, char *argv[], const char *optstring)
 
LIB_API_GETOPT int getopt_long (int argc, char *argv[], const char *optstring, const struct option *longopts, int *longindex)
 

Variables

LIB_API_GETOPT int optind
 
LIB_API_GETOPT int opterr
 
LIB_API_GETOPT int optopt
 
LIB_API_GETOPT char * optarg
 

Macro Definition Documentation

◆ no_argument

#define no_argument   0

Definition at line 86 of file ni_getopt_logan.h.

◆ optional_argument

#define optional_argument   2

Definition at line 88 of file ni_getopt_logan.h.

◆ required_argument

#define required_argument   1

Definition at line 87 of file ni_getopt_logan.h.

Function Documentation

◆ getopt()

LIB_API_GETOPT int getopt ( int  argc,
char *  argv[],
const char *  optstring 
)

Definition at line 39 of file ni_getopt_logan.c.

◆ getopt_long()

LIB_API_GETOPT int getopt_long ( int  argc,
char *  argv[],
const char *  optstring,
const struct option longopts,
int *  longindex 
)

Definition at line 101 of file ni_getopt_logan.c.

Variable Documentation

◆ optarg

LIB_API_GETOPT char* optarg
extern

Definition at line 34 of file ni_getopt_logan.c.

◆ opterr

LIB_API_GETOPT int opterr

Definition at line 50 of file ni_getopt_logan.h.

◆ optind

LIB_API_GETOPT int optind
extern

Definition at line 35 of file ni_getopt_logan.c.

◆ optopt

LIB_API_GETOPT int optopt

Definition at line 50 of file ni_getopt_logan.h.