naive, greedy, but flexible text wrapping function
WrapText.c is a simple text wrapping function. It supports a maximum line width and two prefix strings. One for the first line and another for the remaining lines. It uses a naive, greedy to fit the most words possible on the current line. If a word is too large for any line, it gets stuffed on a line by itself.
released on 31 December 2006
This entry (in part or in whole) was last reviewed on 3 January 2017.