arg_print_formatted() function
Print a piece of text formatted, which means in a column with a left and a right margin. The lines are wrapped at whitspaces next to right margin. The function does not indent the first line, but only the following ones. Example: arg_print_formatted( fp, 0, 5, "Some text that doesn't fit." ) will result in the following output: Some text that doesn' t fit. Too long lines will be wrapped in the middle of a word. arg_print_formatted( fp, 2, 7, "Some text that doesn't fit." ) will result in the following output: Some text that doesn' t fit. As you see, the first line is not indented. This enables output of lines, which start in a line where output already happened. Author: Uli Fouquet
Syntax
void arg_print_formatted(FILE *fp,
const unsigned lmargin,
const unsigned rmargin,
const char *text);