home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d07xx / d0797.lha / PSUtils / psutil.h < prev    next >
C/C++ Source or Header  |  1993-01-10  |  784b  |  44 lines

  1. /* psutil.h
  2.  * AJCD 29/1/91
  3.  * utilities for PS programs
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <ctype.h> /* added by J. Luo for compiling on IBM-RT/PC machines */
  8.  
  9. #ifndef LOCAL
  10. #define LOCAL extern
  11. #endif
  12.  
  13. #define TMPDIR "/tmp"
  14. #define MAXPAGES 5000 /* max pages in document */
  15.  
  16. LOCAL char *prog;
  17. LOCAL long pageptr[MAXPAGES];
  18. LOCAL int pages;
  19. LOCAL int verbose;
  20. LOCAL FILE *infile;
  21. LOCAL FILE *outfile;
  22.  
  23. LOCAL FILE *seekable();
  24. LOCAL int fcopy();
  25. LOCAL writepage();
  26. LOCAL seekpage();
  27. LOCAL writepageheader();
  28. LOCAL writepagebody();
  29. LOCAL writeheader();
  30. LOCAL writeprolog();
  31. LOCAL writetrailer();
  32. LOCAL writeemptypage();
  33. LOCAL scanpages();
  34. LOCAL writestring();
  35. LOCAL message();
  36.  
  37. #ifdef _DCC
  38. #define getpid() 0
  39. #else
  40. extern long ftell();
  41. #endif
  42. extern long lseek();
  43. extern char *getenv();
  44.