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

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

?? unzip.c

?? StormLib是對MPQ文件進行處理的庫 MPQ是暴雪公司的私有的一種壓縮格式
?? C
?? 第 1 頁 / 共 4 頁
字號:
    unz_s us;    unz_s *s;    uLong central_pos,uL;    uLong number_disk;          /* number of the current dist, used for                                   spaning ZIP, unsupported, always 0*/    uLong number_disk_with_CD;  /* number the the disk with central dir, used                                   for spaning ZIP, unsupported, always 0*/    uLong number_entry_CD;      /* total number of entries in                                   the central dir                                   (same than number_entry on nospan) */    int err=UNZ_OK;    if (unz_copyright[0]!=' ')        return NULL;    if (pzlib_filefunc_def==NULL)        fill_fopen_filefunc(&us.z_filefunc);    else        us.z_filefunc = *pzlib_filefunc_def;    us.filestream= (*(us.z_filefunc.zopen_file))(us.z_filefunc.opaque,                                                 path,                                                 ZLIB_FILEFUNC_MODE_READ |                                                 ZLIB_FILEFUNC_MODE_EXISTING);    if (us.filestream==NULL)        return NULL;    central_pos = unzlocal_SearchCentralDir(&us.z_filefunc,us.filestream);    if (central_pos==0)        err=UNZ_ERRNO;    if (ZSEEK(us.z_filefunc, us.filestream,                                      central_pos,ZLIB_FILEFUNC_SEEK_SET)!=0)        err=UNZ_ERRNO;    /* the signature, already checked */    if (unzlocal_getLong(&us.z_filefunc, us.filestream,&uL)!=UNZ_OK)        err=UNZ_ERRNO;    /* number of this disk */    if (unzlocal_getShort(&us.z_filefunc, us.filestream,&number_disk)!=UNZ_OK)        err=UNZ_ERRNO;    /* number of the disk with the start of the central directory */    if (unzlocal_getShort(&us.z_filefunc, us.filestream,&number_disk_with_CD)!=UNZ_OK)        err=UNZ_ERRNO;    /* total number of entries in the central dir on this disk */    if (unzlocal_getShort(&us.z_filefunc, us.filestream,&us.gi.number_entry)!=UNZ_OK)        err=UNZ_ERRNO;    /* total number of entries in the central dir */    if (unzlocal_getShort(&us.z_filefunc, us.filestream,&number_entry_CD)!=UNZ_OK)        err=UNZ_ERRNO;    if ((number_entry_CD!=us.gi.number_entry) ||        (number_disk_with_CD!=0) ||        (number_disk!=0))        err=UNZ_BADZIPFILE;    /* size of the central directory */    if (unzlocal_getLong(&us.z_filefunc, us.filestream,&us.size_central_dir)!=UNZ_OK)        err=UNZ_ERRNO;    /* offset of start of central directory with respect to the          starting disk number */    if (unzlocal_getLong(&us.z_filefunc, us.filestream,&us.offset_central_dir)!=UNZ_OK)        err=UNZ_ERRNO;    /* zipfile comment length */    if (unzlocal_getShort(&us.z_filefunc, us.filestream,&us.gi.size_comment)!=UNZ_OK)        err=UNZ_ERRNO;    if ((central_pos<us.offset_central_dir+us.size_central_dir) &&        (err==UNZ_OK))        err=UNZ_BADZIPFILE;    if (err!=UNZ_OK)    {        ZCLOSE(us.z_filefunc, us.filestream);        return NULL;    }    us.byte_before_the_zipfile = central_pos -                            (us.offset_central_dir+us.size_central_dir);    us.central_pos = central_pos;    us.pfile_in_zip_read = NULL;    us.encrypted = 0;    s=(unz_s*)ALLOC(sizeof(unz_s));    *s=us;    unzGoToFirstFile((unzFile)s);    return (unzFile)s;}extern unzFile ZEXPORT unzOpen (path)    const char *path;{    return unzOpen2(path, NULL);}/*  Close a ZipFile opened with unzipOpen.  If there is files inside the .Zip opened with unzipOpenCurrentFile (see later),    these files MUST be closed with unzipCloseCurrentFile before call unzipClose.  return UNZ_OK if there is no problem. */extern int ZEXPORT unzClose (file)    unzFile file;{    unz_s* s;    if (file==NULL)        return UNZ_PARAMERROR;    s=(unz_s*)file;    if (s->pfile_in_zip_read!=NULL)        unzCloseCurrentFile(file);    ZCLOSE(s->z_filefunc, s->filestream);    TRYFREE(s);    return UNZ_OK;}/*  Write info about the ZipFile in the *pglobal_info structure.  No preparation of the structure is needed  return UNZ_OK if there is no problem. */extern int ZEXPORT unzGetGlobalInfo (file,pglobal_info)    unzFile file;    unz_global_info *pglobal_info;{    unz_s* s;    if (file==NULL)        return UNZ_PARAMERROR;    s=(unz_s*)file;    *pglobal_info=s->gi;    return UNZ_OK;}/*   Translate date/time from Dos format to tm_unz (readable more easilty)*/local void unzlocal_DosDateToTmuDate (ulDosDate, ptm)    uLong ulDosDate;    tm_unz* ptm;{    uLong uDate;    uDate = (uLong)(ulDosDate>>16);    ptm->tm_mday = (uInt)(uDate&0x1f) ;    ptm->tm_mon =  (uInt)((((uDate)&0x1E0)/0x20)-1) ;    ptm->tm_year = (uInt)(((uDate&0x0FE00)/0x0200)+1980) ;    ptm->tm_hour = (uInt) ((ulDosDate &0xF800)/0x800);    ptm->tm_min =  (uInt) ((ulDosDate&0x7E0)/0x20) ;    ptm->tm_sec =  (uInt) (2*(ulDosDate&0x1f)) ;}/*  Get Info about the current file in the zipfile, with internal only info*/local int unzlocal_GetCurrentFileInfoInternal OF((unzFile file,                                                  unz_file_info *pfile_info,                                                  unz_file_info_internal                                                  *pfile_info_internal,                                                  char *szFileName,                                                  uLong fileNameBufferSize,                                                  void *extraField,                                                  uLong extraFieldBufferSize,                                                  char *szComment,                                                  uLong commentBufferSize));local int unzlocal_GetCurrentFileInfoInternal (file,                                              pfile_info,                                              pfile_info_internal,                                              szFileName, fileNameBufferSize,                                              extraField, extraFieldBufferSize,                                              szComment,  commentBufferSize)    unzFile file;    unz_file_info *pfile_info;    unz_file_info_internal *pfile_info_internal;    char *szFileName;    uLong fileNameBufferSize;    void *extraField;    uLong extraFieldBufferSize;    char *szComment;    uLong commentBufferSize;{    unz_s* s;    unz_file_info file_info;    unz_file_info_internal file_info_internal;    int err=UNZ_OK;    uLong uMagic;    long lSeek=0;    if (file==NULL)        return UNZ_PARAMERROR;    s=(unz_s*)file;    if (ZSEEK(s->z_filefunc, s->filestream,              s->pos_in_central_dir+s->byte_before_the_zipfile,              ZLIB_FILEFUNC_SEEK_SET)!=0)        err=UNZ_ERRNO;    /* we check the magic */    if (err==UNZ_OK)        if (unzlocal_getLong(&s->z_filefunc, s->filestream,&uMagic) != UNZ_OK)            err=UNZ_ERRNO;        else if (uMagic!=0x02014b50)            err=UNZ_BADZIPFILE;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.version) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.version_needed) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.flag) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.compression_method) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getLong(&s->z_filefunc, s->filestream,&file_info.dosDate) != UNZ_OK)        err=UNZ_ERRNO;    unzlocal_DosDateToTmuDate(file_info.dosDate,&file_info.tmu_date);    if (unzlocal_getLong(&s->z_filefunc, s->filestream,&file_info.crc) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getLong(&s->z_filefunc, s->filestream,&file_info.compressed_size) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getLong(&s->z_filefunc, s->filestream,&file_info.uncompressed_size) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.size_filename) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.size_file_extra) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.size_file_comment) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.disk_num_start) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.internal_fa) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getLong(&s->z_filefunc, s->filestream,&file_info.external_fa) != UNZ_OK)        err=UNZ_ERRNO;    if (unzlocal_getLong(&s->z_filefunc, s->filestream,&file_info_internal.offset_curfile) != UNZ_OK)        err=UNZ_ERRNO;    lSeek+=file_info.size_filename;    if ((err==UNZ_OK) && (szFileName!=NULL))    {        uLong uSizeRead ;        if (file_info.size_filename<fileNameBufferSize)        {            *(szFileName+file_info.size_filename)='\0';            uSizeRead = file_info.size_filename;        }        else            uSizeRead = fileNameBufferSize;        if ((file_info.size_filename>0) && (fileNameBufferSize>0))            if (ZREAD(s->z_filefunc, s->filestream,szFileName,uSizeRead)!=uSizeRead)                err=UNZ_ERRNO;        lSeek -= uSizeRead;    }    if ((err==UNZ_OK) && (extraField!=NULL))    {        uLong uSizeRead ;        if (file_info.size_file_extra<extraFieldBufferSize)            uSizeRead = file_info.size_file_extra;        else            uSizeRead = extraFieldBufferSize;        if (lSeek!=0)            if (ZSEEK(s->z_filefunc, s->filestream,lSeek,ZLIB_FILEFUNC_SEEK_CUR)==0)                lSeek=0;            else                err=UNZ_ERRNO;        if ((file_info.size_file_extra>0) && (extraFieldBufferSize>0))            if (ZREAD(s->z_filefunc, s->filestream,extraField,uSizeRead)!=uSizeRead)                err=UNZ_ERRNO;        lSeek += file_info.size_file_extra - uSizeRead;    }    else        lSeek+=file_info.size_file_extra;    if ((err==UNZ_OK) && (szComment!=NULL))    {        uLong uSizeRead ;        if (file_info.size_file_comment<commentBufferSize)        {            *(szComment+file_info.size_file_comment)='\0';            uSizeRead = file_info.size_file_comment;        }        else            uSizeRead = commentBufferSize;        if (lSeek!=0)            if (ZSEEK(s->z_filefunc, s->filestream,lSeek,ZLIB_FILEFUNC_SEEK_CUR)==0)                lSeek=0;            else                err=UNZ_ERRNO;        if ((file_info.size_file_comment>0) && (commentBufferSize>0))            if (ZREAD(s->z_filefunc, s->filestream,szComment,uSizeRead)!=uSizeRead)                err=UNZ_ERRNO;        lSeek+=file_info.size_file_comment - uSizeRead;    }    else        lSeek+=file_info.size_file_comment;    if ((err==UNZ_OK) && (pfile_info!=NULL))        *pfile_info=file_info;    if ((err==UNZ_OK) && (pfile_info_internal!=NULL))        *pfile_info_internal=file_info_internal;    return err;}/*  Write info about the ZipFile in the *pglobal_info structure.  No preparation of the structure is needed  return UNZ_OK if there is no problem.*/extern int ZEXPORT unzGetCurrentFileInfo (file,                                          pfile_info,                                          szFileName, fileNameBufferSize,                                          extraField, extraFieldBufferSize,                                          szComment,  commentBufferSize)    unzFile file;    unz_file_info *pfile_info;    char *szFileName;    uLong fileNameBufferSize;    void *extraField;    uLong extraFieldBufferSize;    char *szComment;    uLong commentBufferSize;{    return unzlocal_GetCurrentFileInfoInternal(file,pfile_info,NULL,                                                szFileName,fileNameBufferSize,                                                extraField,extraFieldBufferSize,                                                szComment,commentBufferSize);}/*  Set the current file of the zipfile to the first file.  return UNZ_OK if there is no problem*/extern int ZEXPORT unzGoToFirstFile (file)    unzFile file;{    int err=UNZ_OK;    unz_s* s;    if (file==NULL)        return UNZ_PARAMERROR;    s=(unz_s*)file;    s->pos_in_central_dir=s->offset_central_dir;    s->num_file=0;    err=unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,                                             &s->cur_file_info_internal,                                             NULL,0,NULL,0,NULL,0);    s->current_file_ok = (err == UNZ_OK);    return err;}/*  Set the current file of the zipfile to the next file.  return UNZ_OK if there is no problem  return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.*/extern int ZEXPORT unzGoToNextFile (file)    unzFile file;{    unz_s* s;    int err;    if (file==NULL)        return UNZ_PARAMERROR;    s=(unz_s*)file;    if (!s->current_file_ok)        return UNZ_END_OF_LIST_OF_FILE;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一级高清毛片| 日本乱人伦aⅴ精品| 欧美日韩一区不卡| 色综合久久中文综合久久牛| 一区二区在线电影| 亚洲乱码中文字幕综合| 欧美男生操女生| 91精品国产综合久久国产大片| 蜜桃一区二区三区在线| 亚洲国产精品高清| 亚洲欧洲精品一区二区三区不卡| 在线亚洲免费视频| 欧美日韩一级视频| 日韩午夜电影av| 久久青草国产手机看片福利盒子 | 色综合久久中文综合久久牛| 夜夜精品浪潮av一区二区三区| 欧美一区二区三区免费| 成人激情黄色小说| 在线观看视频一区| 日韩欧美视频在线| 久久精品夜色噜噜亚洲a∨| 欧美午夜精品一区| 欧美xxxxx牲另类人与| 91麻豆123| 日韩精品在线看片z| 99九九99九九九视频精品| 精品一区二区三区蜜桃| 午夜精品久久久久影视| 亚洲三级小视频| 天堂午夜影视日韩欧美一区二区| 中文字幕一区二区视频| 精品国产伦一区二区三区观看体验| 日本高清无吗v一区| 国产**成人网毛片九色 | 国产精品中文字幕欧美| 日日夜夜精品视频免费| 一区二区三区日韩精品| 久久久国产综合精品女国产盗摄| 777色狠狠一区二区三区| 一本大道av伊人久久综合| 成人激情免费视频| 欧美成人午夜电影| 一区二区在线看| 久久99精品久久只有精品| 男女性色大片免费观看一区二区| 亚洲国产欧美在线| 成人福利电影精品一区二区在线观看| 欧美日韩精品综合在线| 91官网在线观看| 国产欧美日韩三级| 久久99精品久久只有精品| 久草这里只有精品视频| 蜜桃av一区二区| 欧美视频三区在线播放| 欧美日韩在线电影| 国产精品国产自产拍高清av| 中文字幕乱码一区二区免费| 国产精品日韩成人| 国内精品嫩模私拍在线| 国产酒店精品激情| 日韩精品专区在线影院观看| 久久午夜免费电影| 国产在线精品一区二区夜色| 国产乱子伦视频一区二区三区| 久久精品国产亚洲5555| 国产老女人精品毛片久久| 成人午夜碰碰视频| 欧美国产精品一区二区三区| 欧美国产日韩一二三区| 亚洲精品乱码久久久久久黑人| 一区二区三区四区蜜桃| 免费欧美日韩国产三级电影| 精油按摩中文字幕久久| 高清成人免费视频| 亚洲精品成人悠悠色影视| 亚洲.国产.中文慕字在线| 美国三级日本三级久久99| 奇米888四色在线精品| 国模冰冰炮一区二区| 91一区二区三区在线观看| 欧美精品在线一区二区| 久久综合成人精品亚洲另类欧美| 国产精品入口麻豆原神| 亚洲大型综合色站| 欧美妇女性影城| 久久国产尿小便嘘嘘| 97超碰欧美中文字幕| 91精品国产一区二区三区| 亚洲欧洲三级电影| 欧美专区亚洲专区| 青青草原综合久久大伊人精品 | 精品国产免费视频| 国产91精品精华液一区二区三区 | 波多野结衣中文字幕一区 | 7799精品视频| 久久精品72免费观看| 一本到不卡免费一区二区| 精品久久一二三区| 成人av网站在线| 亚洲成av人影院| 久久综合九色综合欧美就去吻 | 亚洲大片一区二区三区| 国产高清在线精品| 一区二区三区免费看视频| 久久精品99国产精品日本| 欧美日韩中文精品| 久久成人18免费观看| 欧美三级电影在线看| 亚洲色图欧美激情| 日韩欧美二区三区| 色综合久久久久综合99| 国产人妖乱国产精品人妖| 蜜臂av日日欢夜夜爽一区| 欧美吞精做爰啪啪高潮| 亚洲人成网站影音先锋播放| 国产91精品在线观看| 精品国产一二三| 色婷婷综合久久久久中文一区二区| 久久久久久久久久久久电影 | 欧美日韩在线直播| 东方欧美亚洲色图在线| 欧美精品一区二区三区久久久 | 激情深爱一区二区| 综合久久给合久久狠狠狠97色| 成人午夜免费视频| 久久se精品一区二区| 精品国产制服丝袜高跟| 麻豆一区二区三| 午夜久久久久久久久久一区二区| 日本韩国欧美在线| gogo大胆日本视频一区| 国产欧美日韩亚州综合| 福利一区福利二区| 国产真实乱偷精品视频免| 久久综合色一综合色88| 紧缚奴在线一区二区三区| 久久噜噜亚洲综合| 日韩欧美国产精品一区| 精品一区二区精品| 奇米精品一区二区三区在线观看一| 欧美一区二区三区公司| 久久99九九99精品| 麻豆精品视频在线观看| 精品国产乱码久久久久久蜜臀| 极品少妇一区二区三区精品视频| 久久理论电影网| 久久久噜噜噜久久人人看| jlzzjlzz欧美大全| www.欧美色图| 91小视频在线观看| 色婷婷综合激情| 一本一道久久a久久精品| 天堂成人免费av电影一区| 精品国产髙清在线看国产毛片| 国产精品综合一区二区| 综合久久久久久| 亚洲欧美激情视频在线观看一区二区三区| 久久久久久久久免费| 色av综合在线| 精品视频在线免费观看| 久久99久久精品| 国产福利一区二区三区在线视频| 亚洲欧美色图小说| 亚洲自拍另类综合| 香港成人在线视频| 蜜桃视频在线观看一区| 中文字幕亚洲区| 亚洲线精品一区二区三区八戒| 欧美成人a视频| 国产欧美日韩视频在线观看| 欧美性大战xxxxx久久久| 国产精品123| 91视频观看免费| 欧美理论片在线| 久久久精品黄色| 亚洲视频免费看| 美女高潮久久久| av在线不卡免费看| 欧美一区二区福利视频| 欧美性高清videossexo| 波多野结衣亚洲| 欧美日韩国产成人在线91| 不卡一二三区首页| 欧美乱妇15p| 国产欧美日韩综合精品一区二区 | 狠狠v欧美v日韩v亚洲ⅴ| 亚洲一线二线三线久久久| 国产日韩精品一区| 一区二区三区四区不卡在线| 日本一二三四高清不卡| 精品国产髙清在线看国产毛片| 欧美在线观看一二区| 9久草视频在线视频精品| 狠狠狠色丁香婷婷综合激情| 日韩精品亚洲一区| 成人精品视频一区二区三区| 久草精品在线观看| 欧美日韩激情一区二区| 欧美色综合网站|