WRAP(2) SYSTEM CALLS WRAP(2) NAME wrap - "implements simple word wrap SYNOPSIS varargs string wrap(string str, int width); DESCRIPTION Given a string str (and an optional int width), wrap returns a string with newline chars inserted so that the string will print out "wrapped" to the specified width (default is 75 chars). Example: write(wrap("test test", 4)); would print out test test IMPORTANT: Due to an apparent bug in sprintf, this routine will REPLACE characters in the string with newline characters instead of just inserting newlines, i.e. write(wrap("1234567890", 5)); will print out 12345 7890 (the "6" was replaced by newline) instead of 12345 67890 SEE ALSO sprintf(); AUTHOR Ichabod@TMI, 3/26/93 (documentation) MudOS Release 0.9 Last change: 3-19-93