GNU Octave  8.1.0
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 option * make_option_struct (const struct octave_getopt_options *opts)
 
int octave_get_opterr_wrapper (void)
 
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)
 
int octave_set_opterr_wrapper (int val)
 

Function Documentation

◆ make_option_struct()

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

◆ octave_get_opterr_wrapper()

int octave_get_opterr_wrapper ( void  )

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

◆ 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(), and make_option_struct().

Referenced by cmdline_options::cmdline_options(), and main().

◆ octave_optarg_wrapper()

char* octave_optarg_wrapper ( void  )

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

Referenced by cmdline_options::cmdline_options().

◆ octave_optind_wrapper()

int octave_optind_wrapper ( void  )

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

Referenced by cmdline_options::cmdline_options(), and main().

◆ octave_set_opterr_wrapper()

int octave_set_opterr_wrapper ( int  val)

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

Referenced by main().