home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / spplib_1 / spplib / Example / c / test
Encoding:
Text File  |  1997-08-05  |  441 b   |  23 lines

  1. /* c.test  - a simple example to show how to use
  2.    spplib, a simple preprocessor library to provide
  3.    preprocessed input.  © GCW   August, 1997 
  4.   
  5.    Use as:        test <filename>
  6.  
  7.    in a taskwindow to output the preprocessed
  8.   form of the contents of <filename>.
  9. */
  10.  
  11. #include <stdio.h>
  12. #include "spp.h"
  13.  
  14. char buf[256];
  15.  
  16. int main(int argc, char **argv)
  17. {
  18.  spp_init(argv[1]);
  19.  while (spp_fgets(buf))
  20.       printf("%s",buf);
  21.  return 0;
  22. }
  23.