Mercurial > hg > th-libs
changeset 585:1a4359ecc5d5
Doxygen th_print_wrap().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 12 Jan 2020 16:32:02 +0200 |
parents | 390c66af09cf |
children | 446203207cba |
files | th_args.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/th_args.c Sun Jan 12 14:27:09 2020 +0200 +++ b/th_args.c Sun Jan 12 16:32:02 2020 +0200 @@ -184,6 +184,15 @@ } +/** + * Print given string indented in such a way that it is automatically + * line-wrapped as necessary, taking hard linefeeds into account as well. + * @param fh stdio file handle to output to + * @param str string to output + * @param spad starting pad/indent of the first line + * @param rpad how much to pad the other lines + * @param width total line width to wrap at + */ void th_print_wrap(FILE *fh, const char *str, const int spad, int const rpad, const int width) {