ReactOS 0.4.15-dev-7907-g95bf896
getopt1.c File Reference
#include "getopt.h"
#include "getopt_int.h"
Include dependency graph for getopt1.c:

Go to the source code of this file.

Functions

int getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, const struct option *long_options, int *opt_index)
 
int _getopt_long_r (int argc, char **argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d)
 
int getopt_long_only (int argc, char *__getopt_argv_const *argv, const char *options, const struct option *long_options, int *opt_index)
 
int _getopt_long_only_r (int argc, char **argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d)
 

Function Documentation

◆ _getopt_long_only_r()

int _getopt_long_only_r ( int  argc,
char **  argv,
const char options,
const struct option long_options,
int opt_index,
struct _getopt_data d 
)

Definition at line 55 of file getopt1.c.

58{
59 return _getopt_internal_r (argc, argv, options, long_options, opt_index,
60 1, d, 0);
61}
static int argc
Definition: ServiceArgs.c:12
#define d
Definition: ke_i.h:81
#define argv
Definition: mplay32.c:18
int _getopt_internal_r(int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d, int posixly_correct)
Definition: getopt.c:468
static const struct option long_options[]
Definition: widl.c:185

◆ _getopt_long_r()

int _getopt_long_r ( int  argc,
char **  argv,
const char options,
const struct option long_options,
int opt_index,
struct _getopt_data d 
)

Definition at line 32 of file getopt1.c.

35{
36 return _getopt_internal_r (argc, argv, options, long_options, opt_index,
37 0, d, 0);
38}

◆ getopt_long()

int getopt_long ( int  argc,
char *__getopt_argv_const argv,
const char options,
const struct option long_options,
int opt_index 
)

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}
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

◆ getopt_long_only()

int getopt_long_only ( int  argc,
char *__getopt_argv_const argv,
const char options,
const struct option long_options,
int opt_index 
)

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}