GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
getopt-wrapper.c File Reference
#include <stdlib.h>
#include <getopt.h>
#include "getopt-wrapper.h"
Include dependency graph for getopt-wrapper.c:

Go to the source code of this file.

Functions

static struct optionmake_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)
 

Function Documentation

◆ make_option_struct()

static struct option* make_option_struct ( const struct octave_getopt_options opts)
static

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

References octave_optional_arg, octave_required_arg, option, p, and retval.

Referenced by octave_getopt_long_wrapper().

◆ 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.