NOCFILE.H 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
  11. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
  12. */
  13. /*
  14. * $Source: f:/miner/source/cfile/rcs/nocfile.h $
  15. * $Revision: 1.4 $
  16. * $Author: john $
  17. * $Date: 1994/12/09 17:53:52 $
  18. *
  19. * Prototypes to *NOT* use cfile, but use cfile calling parameters.
  20. * For debugging.
  21. *
  22. * $Log: nocfile.h $
  23. * Revision 1.4 1994/12/09 17:53:52 john
  24. * Added error checking to number of hogfiles..
  25. *
  26. * Revision 1.3 1994/02/17 17:36:34 john
  27. * Added CF_READ_MODE and CF_WRITE_MODE constants.
  28. *
  29. * Revision 1.2 1994/02/15 12:52:08 john
  30. * Crappy inbetween version
  31. *
  32. * Revision 1.1 1994/02/15 09:51:00 john
  33. * Initial revision
  34. *
  35. *
  36. */
  37. #ifndef _NOCFILE_H
  38. #define _NOCFILE_H
  39. #include <stdio.h>
  40. #include <io.h>
  41. #define CFILE FILE
  42. #define cfopen(file,mode) fopen(file,mode)
  43. #define cfilelength(f) filelength( fileno( f ))
  44. #define cfwrite(buf,elsize,nelem,fp) fwrite(buf,elsize,nelem,fp)
  45. #define cfread(buf,elsize,nelem,fp ) fread(buf,elsize,nelem,fp )
  46. #define cfclose( cfile ) fclose( cfile )
  47. #define cfputc(c,fp) fputc(c,fp)
  48. #define cfgetc(fp) fgetc(fp)
  49. #define cfseek(fp,offset,where ) fseek(fp,offset,where )
  50. #define cftell(fp) ftell(fp)
  51. #define cfgets(buf,n,fp) fgets(buf,n,fp)
  52. #define CF_READ_MODE "rb"
  53. #define CF_WRITE_MODE "wb"
  54. #endif
  55.