GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Functions
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

#define octave_no_arg   0

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

#define octave_optional_arg   2

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

Referenced by make_option_struct().

#define octave_required_arg   1

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

Referenced by make_option_struct().

Function Documentation

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 free(), make_option_struct(), option, and retval.

char* octave_optarg_wrapper ( void  )

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

int octave_optind_wrapper ( void  )

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