亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? unzip.c

?? 一個本地database引擎,支持中文T_Sql查詢,兼容DELPHI標準數據庫控件
?? C
?? 第 1 頁 / 共 4 頁
字號:
/* unzip.c -- IO for uncompress .zip files using zlib
   Version 1.01e, February 12th, 2005

   Copyright (C) 1998-2005 Gilles Vollant

   Read unzip.h for more info
*/

/* Decryption code comes from crypt.c by Info-ZIP but has been greatly reduced in terms of
compatibility with older software. The following is from the original crypt.c. Code
woven in by Terry Thorsen 1/2003.
*/
/*
  Copyright (c) 1990-2000 Info-ZIP.  All rights reserved.

  See the accompanying file LICENSE, version 2000-Apr-09 or later
  (the contents of which are also included in zip.h) for terms of use.
  If, for some reason, all these files are missing, the Info-ZIP license
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
*/
/*
  crypt.c (full version) by Info-ZIP.      Last revised:  [see crypt.h]

  The encryption/decryption parts of this source code (as opposed to the
  non-echoing password parts) were originally written in Europe.  The
  whole source package can be freely distributed, including from the USA.
  (Prior to January 2000, re-export from the US was a violation of US law.)
 */

/*
  This encryption code is a direct transcription of the algorithm from
  Roger Schlafly, described by Phil Katz in the file appnote.txt.  This
  file (appnote.txt) is distributed with the PKZIP program (even in the
  version without encryption capabilities).
 */


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"

#ifdef STDC
#  include <stddef.h>
#  include <string.h>
#  include <stdlib.h>
#endif
#ifdef NO_ERRNO_H
    extern int errno;
#else
#   include <errno.h>
#endif


#ifndef local
#  define local static
#endif
/* compile with -Dlocal if your debugger can't find static symbols */


#ifndef CASESENSITIVITYDEFAULT_NO
#  if !defined(unix) && !defined(CASESENSITIVITYDEFAULT_YES)
#    define CASESENSITIVITYDEFAULT_NO
#  endif
#endif


#ifndef UNZ_BUFSIZE
#define UNZ_BUFSIZE (16384)
#endif

#ifndef UNZ_MAXFILENAMEINZIP
#define UNZ_MAXFILENAMEINZIP (256)
#endif

#ifndef ALLOC
# define ALLOC(size) (malloc(size))
#endif
#ifndef TRYFREE
# define TRYFREE(p) {if (p) free(p);}
#endif

#define SIZECENTRALDIRITEM (0x2e)
#define SIZEZIPLOCALHEADER (0x1e)




const char unz_copyright[] =
   " unzip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll";

/* unz_file_info_interntal contain internal info about a file in zipfile*/
typedef struct unz_file_info_internal_s
{
    uLong offset_curfile;/* relative offset of local header 4 bytes */
} unz_file_info_internal;


/* file_in_zip_read_info_s contain internal information about a file in zipfile,
    when reading and decompress it */
typedef struct
{
    char  *read_buffer;         /* internal buffer for compressed data */
    z_stream stream;            /* zLib stream structure for inflate */

    uLong pos_in_zipfile;       /* position in byte on the zipfile, for fseek*/
    uLong stream_initialised;   /* flag set if stream structure is initialised*/

    uLong offset_local_extrafield;/* offset of the local extra field */
    uInt  size_local_extrafield;/* size of the local extra field */
    uLong pos_local_extrafield;   /* position in the local extra field in read*/

    uLong crc32;                /* crc32 of all data uncompressed */
    uLong crc32_wait;           /* crc32 we must obtain after decompress all */
    uLong rest_read_compressed; /* number of byte to be decompressed */
    uLong rest_read_uncompressed;/*number of byte to be obtained after decomp*/
    zlib_filefunc_def z_filefunc;
    voidpf filestream;        /* io structore of the zipfile */
    uLong compression_method;   /* compression method (0==store) */
    uLong byte_before_the_zipfile;/* byte before the zipfile, (>0 for sfx)*/
    int   raw;
} file_in_zip_read_info_s;


/* unz_s contain internal information about the zipfile
*/
typedef struct
{
    zlib_filefunc_def z_filefunc;
    voidpf filestream;        /* io structore of the zipfile */
    unz_global_info gi;       /* public global information */
    uLong byte_before_the_zipfile;/* byte before the zipfile, (>0 for sfx)*/
    uLong num_file;             /* number of the current file in the zipfile*/
    uLong pos_in_central_dir;   /* pos of the current file in the central dir*/
    uLong current_file_ok;      /* flag about the usability of the current file*/
    uLong central_pos;          /* position of the beginning of the central dir*/

    uLong size_central_dir;     /* size of the central directory  */
    uLong offset_central_dir;   /* offset of start of central directory with
                                   respect to the starting disk number */

    unz_file_info cur_file_info; /* public info about the current file in zip*/
    unz_file_info_internal cur_file_info_internal; /* private info about it*/
    file_in_zip_read_info_s* pfile_in_zip_read; /* structure about the current
                                        file if we are decompressing it */
    int encrypted;
#    ifndef NOUNCRYPT
    unsigned long keys[3];     /* keys defining the pseudo-random sequence */
    const unsigned long* pcrc_32_tab;
#    endif
} unz_s;


#ifndef NOUNCRYPT
#include "crypt.h"
#endif

/* ===========================================================================
     Read a byte from a gz_stream; update next_in and avail_in. Return EOF
   for end of file.
   IN assertion: the stream s has been sucessfully opened for reading.
*/


local int unzlocal_getByte OF((
    const zlib_filefunc_def* pzlib_filefunc_def,
    voidpf filestream,
    int *pi));

local int unzlocal_getByte(pzlib_filefunc_def,filestream,pi)
    const zlib_filefunc_def* pzlib_filefunc_def;
    voidpf filestream;
    int *pi;
{
    unsigned char c;
    int err = (int)ZREAD(*pzlib_filefunc_def,filestream,&c,1);
    if (err==1)
    {
        *pi = (int)c;
        return UNZ_OK;
    }
    else
    {
        if (ZERROR(*pzlib_filefunc_def,filestream))
            return UNZ_ERRNO;
        else
            return UNZ_EOF;
    }
}


/* ===========================================================================
   Reads a long in LSB order from the given gz_stream. Sets
*/
local int unzlocal_getShort OF((
    const zlib_filefunc_def* pzlib_filefunc_def,
    voidpf filestream,
    uLong *pX));

local int unzlocal_getShort (pzlib_filefunc_def,filestream,pX)
    const zlib_filefunc_def* pzlib_filefunc_def;
    voidpf filestream;
    uLong *pX;
{
    uLong x ;
    int i;
    int err;

    err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
    x = (uLong)i;

    if (err==UNZ_OK)
        err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
    x += ((uLong)i)<<8;

    if (err==UNZ_OK)
        *pX = x;
    else
        *pX = 0;
    return err;
}

local int unzlocal_getLong OF((
    const zlib_filefunc_def* pzlib_filefunc_def,
    voidpf filestream,
    uLong *pX));

local int unzlocal_getLong (pzlib_filefunc_def,filestream,pX)
    const zlib_filefunc_def* pzlib_filefunc_def;
    voidpf filestream;
    uLong *pX;
{
    uLong x ;
    int i;
    int err;

    err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
    x = (uLong)i;

    if (err==UNZ_OK)
        err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
    x += ((uLong)i)<<8;

    if (err==UNZ_OK)
        err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
    x += ((uLong)i)<<16;

    if (err==UNZ_OK)
        err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
    x += ((uLong)i)<<24;

    if (err==UNZ_OK)
        *pX = x;
    else
        *pX = 0;
    return err;
}


/* My own strcmpi / strcasecmp */
local int strcmpcasenosensitive_internal (fileName1,fileName2)
    const char* fileName1;
    const char* fileName2;
{
    for (;;)
    {
        char c1=*(fileName1++);
        char c2=*(fileName2++);
        if ((c1>='a') && (c1<='z'))
            c1 -= 0x20;
        if ((c2>='a') && (c2<='z'))
            c2 -= 0x20;
        if (c1=='\0')
            return ((c2=='\0') ? 0 : -1);
        if (c2=='\0')
            return 1;
        if (c1<c2)
            return -1;
        if (c1>c2)
            return 1;
    }
}


#ifdef  CASESENSITIVITYDEFAULT_NO
#define CASESENSITIVITYDEFAULTVALUE 2
#else
#define CASESENSITIVITYDEFAULTVALUE 1
#endif

#ifndef STRCMPCASENOSENTIVEFUNCTION
#define STRCMPCASENOSENTIVEFUNCTION strcmpcasenosensitive_internal
#endif

/*
   Compare two filename (fileName1,fileName2).
   If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp)
   If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi
                                                                or strcasecmp)
   If iCaseSenisivity = 0, case sensitivity is defaut of your operating system
        (like 1 on Unix, 2 on Windows)

*/
extern int ZEXPORT unzStringFileNameCompare (fileName1,fileName2,iCaseSensitivity)
    const char* fileName1;
    const char* fileName2;
    int iCaseSensitivity;
{
    if (iCaseSensitivity==0)
        iCaseSensitivity=CASESENSITIVITYDEFAULTVALUE;

    if (iCaseSensitivity==1)
        return strcmp(fileName1,fileName2);

    return STRCMPCASENOSENTIVEFUNCTION(fileName1,fileName2);
}

#ifndef BUFREADCOMMENT
#define BUFREADCOMMENT (0x400)
#endif

/*
  Locate the Central directory of a zipfile (at the end, just before
    the global comment)
*/
local uLong unzlocal_SearchCentralDir OF((
    const zlib_filefunc_def* pzlib_filefunc_def,
    voidpf filestream));

local uLong unzlocal_SearchCentralDir(pzlib_filefunc_def,filestream)
    const zlib_filefunc_def* pzlib_filefunc_def;
    voidpf filestream;
{
    unsigned char* buf;
    uLong uSizeFile;
    uLong uBackRead;
    uLong uMaxBack=0xffff; /* maximum size of global comment */
    uLong uPosFound=0;

    if (ZSEEK(*pzlib_filefunc_def,filestream,0,ZLIB_FILEFUNC_SEEK_END) != 0)
        return 0;


    uSizeFile = ZTELL(*pzlib_filefunc_def,filestream);

    if (uMaxBack>uSizeFile)
        uMaxBack = uSizeFile;

    buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4);
    if (buf==NULL)
        return 0;

    uBackRead = 4;
    while (uBackRead<uMaxBack)
    {
        uLong uReadSize,uReadPos ;
        int i;
        if (uBackRead+BUFREADCOMMENT>uMaxBack)
            uBackRead = uMaxBack;
        else
            uBackRead+=BUFREADCOMMENT;
        uReadPos = uSizeFile-uBackRead ;

        uReadSize = ((BUFREADCOMMENT+4) < (uSizeFile-uReadPos)) ?
                     (BUFREADCOMMENT+4) : (uSizeFile-uReadPos);
        if (ZSEEK(*pzlib_filefunc_def,filestream,uReadPos,ZLIB_FILEFUNC_SEEK_SET)!=0)
            break;

        if (ZREAD(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize)
            break;

        for (i=(int)uReadSize-3; (i--)>0;)
            if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) &&
                ((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06))
            {
                uPosFound = uReadPos+i;
                break;
            }

        if (uPosFound!=0)
            break;
    }
    TRYFREE(buf);
    return uPosFound;
}

/*
  Open a Zip file. path contain the full pathname (by example,
     on a Windows NT computer "c:\\test\\zlib114.zip" or on an Unix computer
     "zlib/zlib114.zip".
     If the zipfile cannot be opened (file doesn't exist or in not valid), the
       return value is NULL.
     Else, the return value is a unzFile Handle, usable with other function
       of this unzip package.
*/
extern unzFile ZEXPORT unzOpen2 (path, pzlib_filefunc_def)
    const char *path;
    zlib_filefunc_def* pzlib_filefunc_def;
{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清beeg欧美| 欧美久久一区二区| 欧美日韩国产免费一区二区| 欧美精品久久久久久久多人混战 | 久久老女人爱爱| 久久青草国产手机看片福利盒子| 亚洲人快播电影网| 国产精品一区二区久久不卡| 欧美视频一区二区三区在线观看| 久久久久97国产精华液好用吗| 亚洲在线观看免费视频| 成人av手机在线观看| 日韩欧美在线网站| 午夜国产精品一区| 91福利在线看| 亚洲免费观看高清在线观看| 高清在线成人网| ww亚洲ww在线观看国产| 日韩国产欧美在线播放| 色综合久久久久综合99| 亚洲国产精品99久久久久久久久 | 国产99精品国产| 精品国产伦一区二区三区免费| 亚洲一区二区五区| 日本高清无吗v一区| 亚洲视频一区在线观看| 国产成人在线免费观看| 精品国产人成亚洲区| 麻豆国产91在线播放| 欧美老年两性高潮| 日韩在线一区二区| 欧美区视频在线观看| 午夜精品久久久久影视| 在线观看网站黄不卡| 亚洲欧美国产三级| 91激情五月电影| 亚洲国产欧美一区二区三区丁香婷| 成人黄色片在线观看| 国产精品毛片无遮挡高清| 国产精品 日产精品 欧美精品| 久久精品亚洲精品国产欧美kt∨| 国产精品夜夜嗨| 欧美激情一区在线| 成人激情免费视频| 亚洲欧洲av在线| 成人av资源站| 自拍视频在线观看一区二区| 91在线视频18| 天堂va蜜桃一区二区三区| 337p亚洲精品色噜噜| 久久99精品久久久| 亚洲国产岛国毛片在线| 91捆绑美女网站| 婷婷激情综合网| 精品久久久久久无| 成人av资源网站| 亚洲v精品v日韩v欧美v专区| 69堂精品视频| 国产高清在线精品| 亚洲精选视频免费看| 69久久99精品久久久久婷婷| 韩国视频一区二区| 亚洲丝袜自拍清纯另类| 在线不卡中文字幕| 国产69精品久久777的优势| 亚洲色图另类专区| 欧美一区欧美二区| av影院午夜一区| 奇米一区二区三区av| 国产精品女上位| 91麻豆精品国产自产在线 | 国产欧美日韩在线| 在线精品观看国产| 国产精品66部| 亚洲国产一区二区三区| 国产无一区二区| 欧美高清激情brazzers| 国产jizzjizz一区二区| 亚洲自拍与偷拍| 国产亚洲欧美色| 3d动漫精品啪啪1区2区免费 | 91精品免费在线| eeuss影院一区二区三区 | 午夜精品在线视频一区| 中文字幕国产精品一区二区| 秋霞成人午夜伦在线观看| 97se狠狠狠综合亚洲狠狠| 免费的成人av| 亚洲香蕉伊在人在线观| 亚洲国产精品国自产拍av| 色妞www精品视频| 天天综合网 天天综合色| 国产欧美一区二区三区网站 | 欧美成人三级电影在线| 欧美日韩精品系列| 国产91综合网| 蜜桃一区二区三区在线观看| 91毛片在线观看| 激情综合色综合久久| 亚洲天堂2016| 国产精品久久久久aaaa樱花| 久久综合色鬼综合色| 99久久99精品久久久久久| 欧美美女网站色| 欧美电影免费观看高清完整版在线观看| 国产精品初高中害羞小美女文| 国产精品成人一区二区三区夜夜夜| 日韩成人精品视频| 婷婷成人激情在线网| 99久久久无码国产精品| 欧美大肚乱孕交hd孕妇| 国产激情一区二区三区| 成人深夜在线观看| 亚洲高清不卡在线观看| 亚洲夂夂婷婷色拍ww47| 丝袜美腿亚洲一区| 国产夜色精品一区二区av| 欧美亚洲国产一区二区三区 | 国产精品18久久久久久久网站| 色老汉av一区二区三区| 99在线视频精品| 国产91色综合久久免费分享| 亚洲高清不卡在线观看| 国产成人高清视频| 亚洲精品日产精品乱码不卡| 狠狠色丁香婷婷综合久久片| 精品国产免费一区二区三区香蕉| 亚洲大尺度视频在线观看| jizz一区二区| 成人va在线观看| jlzzjlzz亚洲日本少妇| 精品久久免费看| 亚洲欧洲综合另类在线| 亚洲午夜视频在线观看| 日韩免费一区二区| 国产在线播放一区三区四| 久久成人久久鬼色| 午夜精品福利久久久| ...av二区三区久久精品| 粉嫩欧美一区二区三区高清影视| 国产日韩欧美在线一区| 久久国产精品免费| 精品国产露脸精彩对白| 精品国产亚洲一区二区三区在线观看| 欧美日韩在线亚洲一区蜜芽| www.欧美日韩| 91在线国产观看| 精品久久久三级丝袜| 亚洲码国产岛国毛片在线| 成人av在线资源网| 蜜臀久久久久久久| fc2成人免费人成在线观看播放 | 国产精品久久综合| 成人av手机在线观看| 成人短视频下载| 五月天久久比比资源色| 精品久久五月天| 日韩成人免费在线| 欧美亚洲一区二区在线| 国产精品嫩草99a| 欧美精品 国产精品| 91久久精品一区二区三| 亚洲精品一二三| 欧美一激情一区二区三区| 北岛玲一区二区三区四区| 久久国产三级精品| |精品福利一区二区三区| 五月开心婷婷久久| 国产福利一区二区三区视频| 国产福利精品导航| 成人免费毛片app| 国产精品成人在线观看| 精品国内二区三区| 欧美日韩你懂得| 亚洲图片欧美激情| 欧美一区二区高清| 亚洲一区av在线| 精品国产一区二区三区忘忧草 | 欧美在线观看视频在线| 免费一级欧美片在线观看| 91色在线porny| 国产性天天综合网| 欧美日韩一区国产| 亚洲欧洲精品一区二区三区| 亚洲成人动漫一区| 亚洲超碰精品一区二区| 看国产成人h片视频| 国产一区二区三区国产| 午夜欧美在线一二页| 2021中文字幕一区亚洲| 欧美亚州韩日在线看免费版国语版| 欧美日韩国产精品成人| 一区二区三区毛片| 欧美性受xxxx黑人xyx性爽| 欧美日韩国产综合久久| 91麻豆国产精品久久| 欧美日韩另类国产亚洲欧美一级| 99国产一区二区三精品乱码| 久久亚洲一级片| 亚洲国产日韩在线一区模特|