資源簡介
基于C語言的 跨平臺 zip unzip實現,源碼。多平臺公用。

代碼片段和文件信息
#define?ZIP_STD
#ifdef?ZIP_STD
#include?
#include?
#include?
#include?
#ifdef?_MSC_VER
#include??//?microsoft?puts?it?here
#else
#include?
#endif
#if?defined(_MSC_VER)?||?defined(__BORLANDC__)?||?defined(__MINGW32__)
#include?
#define?lumkdir(t)?(mkdir(t))
#else
#include?
#define?lumkdir(t)?(mkdir(t0755))
#endif
#include?
#include?
#include?“unzip.h“
//
typedef?unsigned?short?WORD;
#define?_tcslen?strlen
#define?_tcsicmp?stricmp
#define?_tcsncpy?strncpy
#define?_tcsstr?strstr
#define?INVALID_HANDLE_VALUE?0
#ifndef?_T
#define?_T(s)?s
#endif
#ifndef?S_IWUSR
#define?S_IWUSR?0000200
#define?S_ISDIR(m)?(((m)?&?_S_IFMT)?==?_S_IFDIR)
#define?S_ISREG(m)?(((m)?&?_S_IFMT)?==?_S_IFREG)
#endif
//
#else
#include?
#include?
#include?
#include?
#include?
#include?“unzip.h“
#endif
//
#ifdef?UNICODE
#define?_tsprintf?swprintf
#else
#define?_tsprintf?sprintf
#endif
//?THIS?FILE?is?almost?entirely?based?upon?code?by?Jean-loup?Gailly
//?and?Mark?Adler.?It?has?been?modified?by?Lucian?Wischik.
//?The?modifications?were:?incorporate?the?bugfixes?of?1.1.4?allow
//?unzipping?to/from?handles/pipes/files/memory?encryption?unicode
//?a?windowsish?api?and?putting?everything?into?a?single?.cpp?file.
//?The?original?code?may?be?found?at?http://www.gzip.org/zlib/
//?The?original?copyright?text?follows.
//
//
//
//?zlib.h?--?interface?of?the?‘zlib‘?general?purpose?compression?library
//??version?1.1.3?July?9th?1998
//
//??Copyright?(C)?1995-1998?Jean-loup?Gailly?and?Mark?Adler
//
//??This?software?is?provided?‘as-is‘?without?any?express?or?implied
//??warranty.??In?no?event?will?the?authors?be?held?liable?for?any?damages
//??arising?from?the?use?of?this?software.
//
//??Permission?is?granted?to?anyone?to?use?this?software?for?any?purpose
//??including?commercial?applications?and?to?alter?it?and?redistribute?it
//??freely?subject?to?the?following?restrictions:
//
//??1.?The?origin?of?this?software?must?not?be?misrepresented;?you?must?not
//?????claim?that?you?wrote?the?original?software.?If?you?use?this?software
//?????in?a?product?an?acknowledgment?in?the?product?documentation?would?be
//?????appreciated?but?is?not?required.
//??2.?Altered?source?versions?must?be?plainly?marked?as?such?and?must?not?be
//?????misrepresented?as?being?the?original?software.
//??3.?This?notice?may?not?be?removed?or?altered?from?any?source?distribution.
//
//??Jean-loup?Gailly????????Mark?Adler
//??jloup@gzip.org??????????madler@alumni.caltech.edu
//
//
//??The?data?format?used?by?the?zlib?library?is?described?by?RFCs?(Request?for
//??Comments)?1950?to?1952?in?the?files?ftp://ds.internic.net/rfc/rfc1950.txt
//??(zlib?format)?rfc1951.txt?(deflate?format)?and?rfc1952.txt?(gzip?format).
//
//
//?????The?‘zlib‘?compression?library?provides?in
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-21?14:20??Zip\
?????文件??????153447??2019-01-21?14:23??Zip\unzip.cpp
?????文件???????10361??2019-01-21?14:14??Zip\zip.h
?????文件???????10433??2019-01-21?14:23??Zip\unzip.h
?????文件??????119800??2019-01-21?14:14??Zip\zip.cpp
- 上一篇:蜂群算法C語言實現
- 下一篇:支持異常和中斷的CPU verilog設計和仿真代碼
評論
共有 條評論