home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3600 / booz.h < prev    next >
C/C++ Source or Header  |  1991-07-10  |  1KB  |  55 lines

  1. /* booz.h */
  2. /* this file is public domain */
  3.  
  4. /* T_UINT16 must be an unsigned data type of exactly 16 bits */
  5. #define T_UINT16     unsigned short
  6.  
  7. /* Define FIXFNAME to activate the fixfname() function that converts
  8. filename syntax to be acceptable to the host system */
  9. /* #define FIXFNAME */
  10.  
  11. /*
  12. OPEN(x)     open file x for read
  13. CREATE(x)   create file x for read/write
  14.  
  15. Files opened by OPEN() and CREATE() must be opened in
  16. binary mode (not involving any newline translation).
  17. */
  18.  
  19. #define NEED_B
  20.  
  21. /* Conventional stdio, using "b" suffix for binary open */
  22. #ifdef NEED_B
  23. #define  CREATE(x)    fopen(x, "wb")
  24. #define  OPEN(x)    fopen(x, "rb")
  25.  
  26. #else
  27. /* some systems (e.g. Ultrix) don't like a trailinb "b" */
  28. #define  CREATE(x)    fopen(x, "w")
  29. #define  OPEN(x)     fopen(x, "r")
  30. #endif
  31.  
  32. /* don't change the rest of this file */
  33. #define MEM_BLOCK_SIZE    8192
  34.  
  35. /* Functions defined by Booz */
  36.  
  37. int getfile ();
  38. int lzd ();
  39. int readdir ();
  40. int rd_zooh ();
  41. int rd_dir ();
  42. int addbfcrc();
  43. int prterror();
  44. int oozext ();
  45. int putstr ();
  46. char *itoa ();
  47. int fixfname ();
  48.  
  49. /* Standard functions */
  50.  
  51. char *malloc();
  52. char *strcpy();
  53. char *strcat();
  54. char *strncat();
  55.