#include <stdio.h>
Go to the source code of this file.
|
#define | TWOPT_GROUP(h) |
#define | TWOPT_ULONG(n, v, h) |
#define | TWOPT_ULONGLONG(n, v, h) |
#define | TWOPT_UINT(n, v, h) |
#define | TWOPT_STIME(n, v, h) |
#define | TWOPT_DOUBLE(n, v, h) |
#define | TWOPT_CHAR(n, v, h) |
#define | TWOPT_ARGSFILE(n, v, h) |
#define | TWOPT_FLAG(n, v, h) |
#define | TWOPT_END() |
◆ TWOPT_ARGSFILE
#define TWOPT_ARGSFILE |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_CHAR
#define TWOPT_CHAR |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_DOUBLE
#define TWOPT_DOUBLE |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_END
◆ TWOPT_FLAG
#define TWOPT_FLAG |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_GROUP
◆ TWOPT_STIME
#define TWOPT_STIME |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_UINT
#define TWOPT_UINT |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_ULONG
#define TWOPT_ULONG |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_ULONGLONG
#define TWOPT_ULONGLONG |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ tw_opttype
Enumerator |
---|
TWOPTTYPE_GROUP | |
TWOPTTYPE_ULONG | value must be an "unsigned long*"
|
TWOPTTYPE_ULONGLONG | value must be an "unsigned long long*"
|
TWOPTTYPE_UINT | value must be an "unsigned int*"
|
TWOPTTYPE_STIME | value must be a "tw_stime*"
|
TWOPTTYPE_DOUBLE | value must be a "double *"
|
TWOPTTYPE_CHAR | value must be a "char *"
|
TWOPTTYPE_FLAG | value must be an "unsigned int*"
|
TWOPTTYPE_ARGSFILE | value must be a "char *"
|
TWOPTTYPE_SHOWHELP | |
Definition at line 6 of file tw-opts.h.
◆ tw_opt_add()
Add an opt group
Definition at line 23 of file tw-opts.c.
◆ tw_opt_parse()
void tw_opt_parse |
( |
int * | argc, |
|
|
char *** | argv ) |
|
extern |
Remove options from the command line arguments.
Definition at line 552 of file tw-opts.c.
Referenced by apply_opt().
◆ tw_opt_print()
void tw_opt_print |
( |
void | | ) |
|
|
extern |
Pretty-print the option descriptions (for –help)
Definition at line 224 of file tw-opts.c.
◆ tw_opt_settings()
void tw_opt_settings |
( |
FILE * | f | ) |
|
|
extern |
Pretty-print the option descriptions and current values
Definition at line 147 of file tw-opts.c.