# HG changeset patch # User Matti Hamalainen # Date 1578839522 -7200 # Node ID 1a4359ecc5d522547cfb8a17a9a2db91d8231ef6 # Parent 390c66af09cf71f2b927594786264bdf1c55f040 Doxygen th_print_wrap(). diff -r 390c66af09cf -r 1a4359ecc5d5 th_args.c --- 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) {