18 lines
408 B
C
18 lines
408 B
C
#ifndef ARGS_H
|
|
#define ARGS_H
|
|
|
|
#define UNUSED(x) (void)(x)
|
|
#define ARG_UNUSED 0
|
|
#define ARG_USED 1
|
|
#define ARG_IGNORE 2
|
|
#define ARG_INVALID 3
|
|
|
|
void check_arg (char* arg);
|
|
|
|
void global_help(void (*help)(void));
|
|
|
|
void parse_help (int argc, char** argv, void (*help)(void));
|
|
|
|
int parse_args (int argc, char** argv, void (*help)(void), int (*short_arg)(char, char*), int (*long_arg)(char*, char*));
|
|
|
|
#endif
|