home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / main / nfile.c < prev    next >
Text File  |  1998-06-08  |  2KB  |  74 lines

  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/main/rcs/nfile.c $
  15.  * $Revision: 2.0 $
  16.  * $Author: john $
  17.  * $Date: 1995/02/27 11:31:27 $
  18.  * 
  19.  * Routines to read from a big file.
  20.  * 
  21.  * $Log: nfile.c $
  22.  * Revision 2.0  1995/02/27  11:31:27  john
  23.  * New version 2.0, which has no anonymous unions, builds with
  24.  * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
  25.  * 
  26.  * Revision 1.2  1994/12/09  19:20:49  john
  27.  * *** empty log message ***
  28.  * 
  29.  * Revision 1.1  1994/12/07  20:54:27  john
  30.  * Initial revision
  31.  * 
  32.  * 
  33.  */
  34.  
  35.  
  36. #pragma off (unreferenced)
  37. static char rcsid[] = "$Id: nfile.c 2.0 1995/02/27 11:31:27 john Exp $";
  38. #pragma on (unreferenced)
  39.  
  40. #include <stdlib.h>
  41.  
  42. static nfile_initialized = 0;
  43.  
  44. void nfile_close()
  45. {
  46.     if ( !nfile_initialized ) return;
  47.     nfile_initialized = 0;
  48. }
  49.  
  50. void nfile_init()
  51. {
  52.     if ( nfile_initialized ) return;
  53.     nfile_initialized = 1;
  54.     
  55.     atexit( nfile_close );
  56.  
  57.     // Init....
  58. }
  59.  
  60. FILE * nfopen( char * name, char * mode )
  61. {
  62.     FILE * fp;
  63.     fp = fopen( name, mode );
  64.     return fp;
  65. }
  66.  
  67. int nfilelength( char * name )
  68. {
  69.  
  70. }
  71.  
  72.  
  73. 
  74.