diff options
Diffstat (limited to 'util/argconfig.h')
-rw-r--r-- | util/argconfig.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/util/argconfig.h b/util/argconfig.h index b66706a..6ef3b6a 100644 --- a/util/argconfig.h +++ b/util/argconfig.h @@ -37,6 +37,7 @@ #include <string.h> #include <getopt.h> #include <stdarg.h> +#include <stdio.h> enum argconfig_types { CFG_FLAG, @@ -71,9 +72,6 @@ enum argconfig_types { #define OPT_SUFFIX(l, s, v, d) \ {l, s, "IONUM", CFG_LONG_SUFFIX, v, required_argument, d} -#define OPT_LONG(l, s, v, d) \ - {l, s, "NUM", CFG_LONG, v, required_argument, d} - #define OPT_UINT(l, s, v, d) \ {l, s, "NUM", CFG_POSITIVE, v, required_argument, d} @@ -131,7 +129,8 @@ int argconfig_parse_comma_sep_array_short(char *string, unsigned short *ret, int argconfig_parse_comma_sep_array_long(char *string, unsigned long long *ret, unsigned max_length); +int argconfig_parse_byte(const char *opt, const char *str, unsigned char *val); void argconfig_register_help_func(argconfig_help_func * f); -void print_word_wrapped(const char *s, int indent, int start); +void print_word_wrapped(const char *s, int indent, int start, FILE *stream); #endif |