home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_07_02 / v7n2029a.txt < prev    next >
Text File  |  1988-12-04  |  655b  |  22 lines

  1. &cstruse
  2. cstr - Produce compilable C STRing from a text file.
  3.  
  4. Syntax:
  5.      cstr file.str
  6.  
  7. Where:
  8.    file.str
  9.        is the name of a file containing text.  The filename need not end
  10.        in  ".str",  but  it  cannot  end in ".c" (since the output would
  11.        destroy the input).
  12.  
  13. Description:
  14.      From a text file, cstr produces a C file containing a character ar-
  15. ray  named  after  the input file and initialized with its text.  If the
  16. first line of the text file is of the form:
  17.  
  18.      &name size
  19.  
  20. it will be taken to indicate the name and dimension (in  bytes)  of  the
  21. character array.  The "size" specification is optional.
  22.