home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11534 < prev    next >
Encoding:
Text File  |  1992-07-23  |  993 b   |  28 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!navajo!shulick
  3. From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
  4. Subject: Writing an auto-wrap routine
  5. Message-ID: <Brv1u5.95u@usenet.ucs.indiana.edu>
  6. Originator: shulick@navajo
  7. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  8. Nntp-Posting-Host: navajo.ucs.indiana.edu
  9. Reply-To: shulick@navajo.ucs.indiana.edu
  10. Organization: Vallen Software
  11. Date: Thu, 23 Jul 1992 21:18:05 GMT
  12. Lines: 14
  13.  
  14.  
  15. I want to have a function that would work like this:
  16.  
  17.   void wprintf(char *string, int cols)
  18.  
  19. Which would print 'string' using word-wrap, at 'cols' columns.  What's the best
  20. way to go about this?
  21.  
  22. REPLY VIA E-MAIL (shulick@indiana.edu).
  23. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24. -- 
  25. Sam Hulick  ///  E-mail: shulick@indiana.edu (including NeXT mail)
  26. ------------------------------------------------------------------------
  27.   "The pen is the mouth and the paper is the soon-to-be-wise one."
  28.