- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
unzipstb.c
资源名称:unzip540.zip [点击查看]
上传用户:andy_li
上传日期:2007-01-06
资源大小:1019k
文件大小:2k
源码类别:
压缩解压
开发平台:
MultiPlatform
- /*---------------------------------------------------------------------------
- unzipstb.c
- Simple stub function for UnZip DLL (or shared library, whatever); does
- exactly the same thing as normal UnZip, except for additional printf()s
- of various version numbers, solely as a demonstration of what can/should
- be checked when using the DLL. (If major version numbers ever differ,
- assume program is incompatible with DLL--especially if DLL version is
- older. This is not likely to be a problem with *this* simple program,
- but most user programs will be much more complex.)
- ---------------------------------------------------------------------------*/
- #include <stdio.h>
- #include "unzip.h"
- #include "version.h"
- int main(int argc, char *argv[])
- {
- static UzpVer *pVersion; /* no pervert jokes, please... */
- pVersion = UzpVersion();
- printf("UnZip stub: checking version numbers (DLL is dated %s)n",
- pVersion->date);
- printf(" UnZip versions: expecting %d.%d%d, using %d.%d%d%sn",
- UZ_MAJORVER, UZ_MINORVER, PATCHLEVEL, pVersion->unzip.major,
- pVersion->unzip.minor, pVersion->unzip.patchlevel, pVersion->betalevel);
- printf(" ZipInfo versions: expecting %d.%d%d, using %d.%d%dn",
- ZI_MAJORVER, ZI_MINORVER, PATCHLEVEL, pVersion->zipinfo.major,
- pVersion->zipinfo.minor, pVersion->zipinfo.patchlevel);
- /*
- D2_M*VER and os2dll.* are obsolete, though retained for compatibility:
- printf(" OS2 DLL versions: expecting %d.%d%d, using %d.%d%dn",
- D2_MAJORVER, D2_MINORVER, PATCHLEVEL, pVersion->os2dll.major,
- pVersion->os2dll.minor, pVersion->os2dll.patchlevel);
- */
- if (pVersion->flag & 2)
- printf(" using zlib version %sn", pVersion->zlib_version);
- printf("n");
- /* call the actual UnZip routine (string-arguments version) */
- return UzpMain(argc, argv);
- }