home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / SNPDSKIO.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  1KB  |  45 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  Header file for SNIPPETS direct disk I/O functions
  5. */
  6.  
  7. #ifndef SNPDKSIO__H
  8. #define SNPDKSIO__H
  9.  
  10. #include <stddef.h>
  11. #include <stdio.h>
  12. #include "extkword.h"
  13.  
  14. /*
  15. **  File: ABSDISKC.C and ABSDISK.ASM
  16. */
  17.  
  18. int CDECL absdisk(unsigned char  function,
  19.                   unsigned short drive,               /* 0 = A:, etc.   */
  20.                   size_t         number_of_sectors,
  21.                   size_t         starting_sector,
  22.                   void *         sector_buffer);
  23.  
  24. int AbsDiskRead(unsigned short drive,
  25.                 size_t         num_of_sectors,
  26.                 size_t         sector,
  27.                 void          *ptr);
  28.  
  29. int AbsDiskWrite(unsigned short drive,
  30.                 size_t         num_of_sectors,
  31.                 size_t         sector,
  32.                 void *ptr);
  33.  
  34. /*
  35. **  File: HUGEREAD.C
  36. */
  37.  
  38. long hugeread(int fh, unsigned char FAR *buf, long size);
  39. long hugewrite(int fh, unsigned char FAR *buf, long size);
  40. long hugefread(FILE *fp, char FAR *buf, long size);
  41. long hugefwrite(FILE *fp, char FAR *buf, long size);
  42.  
  43.  
  44. #endif /* SNPDKSIO__H */
  45.