comparison th_args.c @ 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
comparison
equal deleted inserted replaced
584:390c66af09cf 585:1a4359ecc5d5
182 while (count--) 182 while (count--)
183 fputc(och, fh); 183 fputc(och, fh);
184 } 184 }
185 185
186 186
187 /**
188 * Print given string indented in such a way that it is automatically
189 * line-wrapped as necessary, taking hard linefeeds into account as well.
190 * @param fh stdio file handle to output to
191 * @param str string to output
192 * @param spad starting pad/indent of the first line
193 * @param rpad how much to pad the other lines
194 * @param width total line width to wrap at
195 */
187 void th_print_wrap(FILE *fh, const char *str, 196 void th_print_wrap(FILE *fh, const char *str,
188 const int spad, int const rpad, const int width) 197 const int spad, int const rpad, const int width)
189 { 198 {
190 size_t pos = 0; 199 size_t pos = 0;
191 BOOL first = TRUE; 200 BOOL first = TRUE;