21 int *
p,
int def_value,
const char*
desc);
24 double *
p,
double def_value,
const char*
desc);
27 const char**
p,
const char*def_balue,
const char*
desc);
30 int*value,
const char*
desc);
45 #define OPTIONS_NAME_MAXSIZE 32 46 #define OPTIONS_VALUE_MAXSIZE 256 int get_int(int *p, const char *s)
int options_parse_file(struct option *ops, const char *pwd, const char *file)
void options_set_passed(struct option *o)
int get_double(double *p, const char *s)
void options_double(struct option *, const char *name, double *p, double def_value, const char *desc)
struct option * options_next_empty(struct option *ops)
char * strdup_(const char *s)
int options_requires_argument(struct option *o)
struct option_alternative alt[4]
struct option * options_allocate(int n)
void options_int(struct option *, const char *name, int *p, int def_value, const char *desc)
struct option_alternative * alternative
void options_print_help(struct option *ops, FILE *where)
void options_alternative(struct option *, const char *name, struct option_alternative *alt, int *value, const char *desc)
void options_banner(const char *message)
int options_try_pair(struct option *ops, const char *name, const char *value)
int options_set(struct option *op, const char *value)
void options_string(struct option *, const char *name, const char **p, const char *def_balue, const char *desc)
int options_parse_stream(struct option *ops, const char *pwd, FILE *file)
int options_parse_args(struct option *ops, int argc, const char *argv[])
int options_valid(struct option *op)
struct option * options_find(struct option *ops, const char *name)
void options_dump(struct option *options, FILE *f, int write_desc)