Go to the source code of this file.
Functions | |
static struct option * | make_option_struct (const struct octave_getopt_options *opts) |
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) |
|
static |
Definition at line 42 of file getopt-wrapper.c.
References octave_getopt_options::flag, octave_getopt_options::has_arg, malloc(), n, octave_getopt_options::name, octave_optional_arg, octave_required_arg, retval, and octave_getopt_options::val.
Referenced by 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 99 of file getopt-wrapper.c.
References free(), make_option_struct(), and retval.
Referenced by octave::cmdline_options::cmdline_options().
char* octave_optarg_wrapper | ( | void | ) |
Definition at line 114 of file getopt-wrapper.c.
Referenced by octave::cmdline_options::cmdline_options().
int octave_optind_wrapper | ( | void | ) |
Definition at line 120 of file getopt-wrapper.c.
Referenced by octave::cmdline_options::cmdline_options().