mztools.h
上传用户:shengde
上传日期:2021-02-21
资源大小:638k
文件大小:1k
源码类别:

压缩解压

开发平台:

Visual C++

  1. /*
  2.   Additional tools for Minizip
  3.   Code: Xavier Roche '2004
  4.   License: Same as ZLIB (www.gzip.org)
  5. */
  6. #ifndef _zip_tools_H
  7. #define _zip_tools_H
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #ifndef _ZLIB_H
  12. #include "zlib.h"
  13. #endif
  14. #include "unzip.h"
  15. /* Repair a ZIP file (missing central directory)
  16.    file: file to recover
  17.    fileOut: output file after recovery
  18.    fileOutTmp: temporary file name used for recovery
  19. */
  20. extern int ZEXPORT unzRepair(const char* file,
  21.                              const char* fileOut,
  22.                              const char* fileOutTmp,
  23.                              uLong* nRecovered,
  24.                              uLong* bytesRecovered);
  25. #endif