ReactOS 0.4.16-dev-250-g3ecd236
getopt_ext.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 required_argument   1
 
#define optional_argument   2
 

Functions

int getopt_long (int ___argc, char *__getopt_argv_const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind)
 
int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind)
 

Macro Definition Documentation

◆ no_argument

#define no_argument   0

Definition at line 60 of file getopt_ext.h.

◆ optional_argument

#define optional_argument   2

Definition at line 62 of file getopt_ext.h.

◆ required_argument

#define required_argument   1

Definition at line 61 of file getopt_ext.h.

Function Documentation

◆ getopt_long()

int getopt_long ( int  ___argc,
char *__getopt_argv_const ___argv,
const char __shortopts,
const struct option __longopts,
int __longind 
)

Definition at line 24 of file getopt1.c.

26{
27 return _getopt_internal (argc, (char **) argv, options, long_options,
28 opt_index, 0, 0);
29}
static int argc
Definition: ServiceArgs.c:12
int _getopt_internal(optarg_ctx *o, int argc, WCHAR *const *argv, const WCHAR *optstring, const struct option *longopts, int *longind, int long_only)
Definition: getopt.cpp:157
#define argv
Definition: mplay32.c:18
static const struct option long_options[]
Definition: widl.c:185

◆ getopt_long_only()

int getopt_long_only ( int  ___argc,
char *__getopt_argv_const ___argv,
const char __shortopts,
const struct option __longopts,
int __longind 
)

Definition at line 46 of file getopt1.c.

49{
50 return _getopt_internal (argc, (char **) argv, options, long_options,
51 opt_index, 1, 0);
52}