mztools.h
Upload User: shengde
Upload Date: 2021-02-21
Package Size: 638k
Code Size: 1k
Development Platform:

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