home *** CD-ROM | disk | FTP | other *** search
/ The Party 1994: Try This At Home / disk_image.bin / source / vexsrc / ovlio.cpp < prev    next >
C/C++ Source or Header  |  1995-03-29  |  1KB  |  43 lines

  1. /*****************************************************************************
  2.                                   ATTENTION!
  3.                            this source is VOTEWARE,
  4.               you may only use it to the conditions listed below:
  5.  
  6.   -You may modify it, or use parts of it in your own source as long as
  7.     this header stays on top of all files containing this source.
  8.   -You must give proper credit to the author, Niklas Beisert / pascal.
  9.   -You may not use it in commercial productions without the written
  10.     permission of the author.
  11.   -AND MOST IMPORTANT: you have to buy an Assembly '94 CD-ROM
  12.     by Sound Solutions (if you don't have it already) and vote for VEX-InTrO
  13.     in the PC-64k-Intro-Compo! (if you have already sent your voting card,
  14.     buy another one and fill it out CORRECTLY!!!)
  15. *****************************************************************************/
  16.  
  17.  
  18.  
  19. // these functions originally read from an packed overlay
  20.  
  21. #include <io.h>
  22. #include <fcntl.h>
  23.  
  24. short oopen(const char *name)
  25. {
  26.   return open(name, O_RDONLY|O_BINARY);
  27. }
  28.  
  29. long oread(short hnd, void *buf, unsigned short len)
  30. {
  31.   return read(hnd, buf, len);
  32. }
  33.  
  34. long oseek(short hnd, long pos, short type)
  35. {
  36.   return lseek(hnd, pos, type);
  37. }
  38.  
  39. void oclose(short hnd)
  40. {
  41.   close(hnd);
  42. }
  43.