GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
getopt-wrapper.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  octave_getopt_options
 

Macros

#define octave_no_arg   0
 
#define octave_optional_arg   2
 
#define octave_required_arg   1
 

Functions

int octave_getopt_long_wrapper (int argc, char **argv, const char *shortopts, const struct octave_getopt_options *longopts, int *longind)
 
char * octave_optarg_wrapper (void)
 
int octave_optind_wrapper (void)
 

Macro Definition Documentation

◆ octave_no_arg

#define octave_no_arg   0

Definition at line 38 of file getopt-wrapper.h.

◆ octave_optional_arg

#define octave_optional_arg   2

Definition at line 40 of file getopt-wrapper.h.

Referenced by make_option_struct().

◆ octave_required_arg

#define octave_required_arg   1

Definition at line 39 of file getopt-wrapper.h.

Referenced by make_option_struct().

Function Documentation

◆ octave_getopt_long_wrapper()

int octave_getopt_long_wrapper ( int  argc,
char **  argv,
const char *  shortopts,
const struct octave_getopt_options longopts,
int *  longind 
)

Definition at line 91 of file getopt-wrapper.c.

References argc, argv, make_option_struct(), option, and retval.

◆ octave_optarg_wrapper()

char* octave_optarg_wrapper ( void  )

Definition at line 106 of file getopt-wrapper.c.

◆ octave_optind_wrapper()

int octave_optind_wrapper ( void  )

Definition at line 112 of file getopt-wrapper.c.