#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <inttypes.h>
#include <limits.h>
#include <string.h>
#include <errno.h>
Go to the source code of this file.
|
char * | flag_name (void *val) |
bool * | flag_bool (const char *name, bool def, const char *desc) |
uint64_t * | flag_uint64 (const char *name, uint64_t def, const char *desc) |
size_t * | flag_size (const char *name, uint64_t def, const char *desc) |
char ** | flag_str (const char *name, const char *def, const char *desc) |
Flag_List * | flag_list (const char *name, const char *desc) |
bool | flag_parse (int argc, char **argv) |
int | flag_rest_argc (void) |
char ** | flag_rest_argv (void) |
void | flag_print_error (FILE *stream) |
void | flag_print_options (FILE *stream) |
◆ FLAG_LIST_INIT_CAP
#define FLAG_LIST_INIT_CAP 8 |
◆ flag_bool()
bool * flag_bool |
( |
const char * | name, |
|
|
bool | def, |
|
|
const char * | desc ) |
◆ flag_list()
Flag_List * flag_list |
( |
const char * | name, |
|
|
const char * | desc ) |
◆ flag_name()
char * flag_name |
( |
void * | val | ) |
|
◆ flag_parse()
bool flag_parse |
( |
int | argc, |
|
|
char ** | argv ) |
◆ flag_print_error()
void flag_print_error |
( |
FILE * | stream | ) |
|
◆ flag_print_options()
void flag_print_options |
( |
FILE * | stream | ) |
|
◆ flag_rest_argc()
int flag_rest_argc |
( |
void | | ) |
|
◆ flag_rest_argv()
char ** flag_rest_argv |
( |
void | | ) |
|
◆ flag_size()
size_t * flag_size |
( |
const char * | name, |
|
|
uint64_t | def, |
|
|
const char * | desc ) |
◆ flag_str()
char ** flag_str |
( |
const char * | name, |
|
|
const char * | def, |
|
|
const char * | desc ) |
◆ flag_uint64()
uint64_t * flag_uint64 |
( |
const char * | name, |
|
|
uint64_t | def, |
|
|
const char * | desc ) |