Mercurial > hg > th-libs
diff th_args.h @ 584:390c66af09cf
Move th_print_wrap() and th_print_pad() to th_args from th_string.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 12 Jan 2020 14:27:09 +0200 |
parents | d60e1d751b5b |
children | 98812eb78d8e |
line wrap: on
line diff
--- a/th_args.h Sun Jan 12 13:00:58 2020 +0200 +++ b/th_args.h Sun Jan 12 14:27:09 2020 +0200 @@ -43,13 +43,16 @@ } th_optarg; -BOOL th_args_process(int argc, char *argv[], - const th_optarg *opts, const int nopts, - BOOL (*handle_option)(int id, char *, char *), - BOOL (*handle_other)(char *), const int flags); +BOOL th_args_process(int argc, char *argv[], + const th_optarg *opts, const int nopts, + BOOL (*handle_option)(int id, char *, char *), + BOOL (*handle_other)(char *), const int flags); -void th_args_help(FILE *fh, const th_optarg *opts, - const int nopts, const int flags); +void th_args_help(FILE *fh, const th_optarg *opts, + const int nopts, const int flags); + +void th_print_wrap(FILE *fh, const char *str, + const int spad, const int rpad, const int width); #ifdef __cplusplus }