home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / C.ZIP / C_UTIL.DOC < prev    next >
Text File  |  1988-11-26  |  2KB  |  46 lines

  1.                 C_UTIL.ARC
  2.  
  3.     The arc file contains three programs, all of which are utilities
  4. which I have found useful in the maintenance of C source files.  The 
  5. programs, LINE.EXE and BRACE.EXE are are written for OS/2 ver 1.0, and
  6. they require OS/2 in order to run (they are not bound).
  7.  
  8.     BRACE.EXE returns the number of line, characters, and braces,
  9. "{ }", contained in an ASCII source file.  It also compares the number
  10. of opening and closing braces, and reports an error if they are not 
  11. equal.
  12.     The syntax for BRACE.EXE is
  13.         brace            /* help */
  14.         brace <filename>    /* parse ASCII file*/
  15.  
  16.     LINE.EXE converts an un-numbered ASCII file into a file with
  17. single spaced line numbers in the left hand margin.  This is useful for
  18. debugging purposes (for example, the /Fa switch in MSC produces an asm
  19. file with refereces to line numbers in the source file, even if the source
  20. file had none).
  21.  
  22.     The syntax of LINE.EXE is
  23.         line                /* help */
  24.         line <filename> | more      /* pipe page-size output 
  25.                            to console */
  26.         line <filename> > file.txt  /* redirect output to new
  27.                            file. */
  28.  
  29.     STRIP.EXE cats (displays) the contents of a text file, and also
  30. strips the file of control characters, ie, the tab character left in by
  31. some text editors.  The freopen type is "r", so the original file isn't
  32. changed ... you can redirect output to a newfile if you want a text file
  33. free of control characters.
  34.  
  35.     The syntax for STRIP.EXE is the same as that for LINE.EXE.
  36.  
  37.     To see the action of these files, run this doc file through
  38. them, and compare the output.
  39.  
  40.     Until an (affordable) lint is available for OS/2, I hope that
  41. this utility may prove useful.  
  42.  
  43.  
  44.                 Harve Schiffman
  45.                 Compuserve 72261,347
  46.