/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* For general information on ZIP formats, you can look at jarfile.h *inns/security/lib/jar.Orlookitupontheweb...
*/
/* One entry in a ZIPfile. This corresponds to one file in the archive. *Wehavetosavethisinformationbecausefirstallthefilesgointo *thearchivewithlocalheaders;thenattheendofthefilewehaveto *putthecentraldirectoryentriesforeachfile.
*/ typedefstruct ZIPentry_s { struct ZipLocal local; /* local header info */ struct ZipCentral central; /* central directory info */ char *filename; /* name of file */ char *comment; /* comment for this file -- optional */
struct ZIPentry_s *next;
} ZIPentry;
/* This structure contains the necessary data for putting a ZIP file *together.HassomeoverallinformationandalistofZIPentrys.
*/ typedefstruct ZIPfile_s { char *filename; /* ZIP file name */ char *comment; /* ZIP file comment -- may be NULL */
PRFileDesc *fp; /* ZIP file pointer */
ZIPentry *list; /* one entry for each file in the archive */ unsignedint time; /* the GMT time of creation, in DOS format */ unsignedint date; /* the GMT date of creation, in DOS format */ unsignedlong central_start; /* starting offset of central directory */ unsignedlong central_end; /*index right after the last byte of central*/
} ZIPfile;
/* Open a new ZIP file. Takes the name of the zip file and an optional *commenttobeincludedinthefile.ReturnsanewZIPfilestructure *whichisusedbyJzipAddandJzipClose
*/
ZIPfile *JzipOpen(char *filename, char *comment);
/* Add a file to a ZIP archive. Fullname is the path relative to the *currentdirectory.Filenameiswhatthenamewillbestoredasinthe *archive,andthuswhatitwillberestoredas.zipfileisastructure *returnedfromapreviouscalltoJzipOpen. * *Non-zeroreturncodemeanserror(althoughusuallythefunctionwill *callexit()ratherthanreturnanerror--gottafixthis).
*/ int JzipAdd(char *fullname, char *filename, ZIPfile *zipfile, int compression_level);
/* Finalize a ZIP archive. Adds all the footer information to the end of *thefileandclosesit.AlsoDELETESTHEZIPFILESTRUCTUREthatwas *passedin.SoyouneverhavetoallocateorfreeaZIPfileyourself. * *Non-zeroreturncodemeanserror(althoughusuallythefunctionwill *callexit()ratherthanreturnanerror--gottafixthis).
*/ int JzipClose(ZIPfile *zipfile);
#endif/* ZIP_H */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.