Typedefs | Functions
getopt.h File Reference
#include "zarray.h"
#include "string_util.h"
Include dependency graph for getopt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct getopt getopt_t
 

Functions

void getopt_add_bool (getopt_t *gopt, char sopt, const char *lname, int def, const char *help)
 
void getopt_add_double (getopt_t *gopt, char sopt, const char *lname, const char *def, const char *help)
 
void getopt_add_int (getopt_t *gopt, char sopt, const char *lname, const char *def, const char *help)
 
void getopt_add_spacer (getopt_t *gopt, const char *s)
 
void getopt_add_string (getopt_t *gopt, char sopt, const char *lname, const char *def, const char *help)
 
getopt_tgetopt_create ()
 
void getopt_destroy (getopt_t *gopt)
 
void getopt_do_usage (getopt_t *gopt)
 
int getopt_get_bool (getopt_t *getopt, const char *lname)
 
double getopt_get_double (getopt_t *getopt, const char *lname)
 
const zarray_tgetopt_get_extra_args (getopt_t *gopt)
 
int getopt_get_int (getopt_t *getopt, const char *lname)
 
const char * getopt_get_string (getopt_t *gopt, const char *lname)
 
char * getopt_get_usage (getopt_t *gopt)
 
int getopt_parse (getopt_t *gopt, int argc, char *argv[], int showErrors)
 
int getopt_was_specified (getopt_t *gopt, const char *lname)
 

Typedef Documentation

◆ getopt_t

typedef struct getopt getopt_t

Definition at line 37 of file getopt.h.

Function Documentation

◆ getopt_add_bool()

void getopt_add_bool ( getopt_t gopt,
char  sopt,
const char *  lname,
int  def,
const char *  help 
)

Definition at line 321 of file getopt.c.

◆ getopt_add_double()

void getopt_add_double ( getopt_t gopt,
char  sopt,
const char *  lname,
const char *  def,
const char *  help 
)

Definition at line 366 of file getopt.c.

◆ getopt_add_int()

void getopt_add_int ( getopt_t gopt,
char  sopt,
const char *  lname,
const char *  def,
const char *  help 
)

Definition at line 360 of file getopt.c.

◆ getopt_add_spacer()

void getopt_add_spacer ( getopt_t gopt,
const char *  s 
)

Definition at line 313 of file getopt.c.

◆ getopt_add_string()

void getopt_add_string ( getopt_t gopt,
char  sopt,
const char *  lname,
const char *  def,
const char *  help 
)

Definition at line 371 of file getopt.c.

◆ getopt_create()

getopt_t* getopt_create ( )

Definition at line 67 of file getopt.c.

◆ getopt_destroy()

void getopt_destroy ( getopt_t gopt)

Definition at line 89 of file getopt.c.

◆ getopt_do_usage()

void getopt_do_usage ( getopt_t gopt)

Definition at line 487 of file getopt.c.

◆ getopt_get_bool()

int getopt_get_bool ( getopt_t getopt,
const char *  lname 
)

Definition at line 442 of file getopt.c.

◆ getopt_get_double()

double getopt_get_double ( getopt_t getopt,
const char *  lname 
)

Definition at line 450 of file getopt.c.

◆ getopt_get_extra_args()

const zarray_t* getopt_get_extra_args ( getopt_t gopt)

Definition at line 482 of file getopt.c.

◆ getopt_get_int()

int getopt_get_int ( getopt_t getopt,
const char *  lname 
)

Definition at line 420 of file getopt.c.

◆ getopt_get_string()

const char* getopt_get_string ( getopt_t gopt,
const char *  lname 
)

Definition at line 410 of file getopt.c.

◆ getopt_get_usage()

char* getopt_get_usage ( getopt_t gopt)

Definition at line 494 of file getopt.c.

◆ getopt_parse()

int getopt_parse ( getopt_t gopt,
int  argc,
char *  argv[],
int  showErrors 
)

Definition at line 142 of file getopt.c.

◆ getopt_was_specified()

int getopt_was_specified ( getopt_t gopt,
const char *  lname 
)

Definition at line 472 of file getopt.c.



apriltag
Author(s): Edwin Olson , Max Krogius
autogenerated on Mon Jun 26 2023 02:26:35