zipup.h 643 B

123456789101112131415161718
  1. /*
  2. Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 1999-Oct-05 or later
  4. (the contents of which are also included in zip.h) for terms of use.
  5. If, for some reason, both of these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html
  7. */
  8. #define fhow "r,byteseek"
  9. #define fhowb "rb,byteseek"
  10. #define fbad NULL
  11. typedef FILE *ftype;
  12. #define zopen(n,p) (ftype)fopen((n),(p))
  13. #define zread(f,b,n) fread((b),1,(n),(FILE*)(f))
  14. #define zclose(f) fclose((FILE*)(f))
  15. #define zerr(f) ferror((FILE*)(f))
  16. #define zstdin stdin