"Fossies" - the Fresh Open Source Software Archive

Member "odt2txt-0.5/kunzip/kunzip.h" (18 Nov 2014, 1912 Bytes) of package /linux/privat/odt2txt-0.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "kunzip.h" see the Fossies "Dox" file reference documentation.

    1 #include "../strbuf.h"
    2 
    3 /*
    4 
    5 ABOUT THIS FILE:
    6 
    7 kunzip is a library created by Michael Kohn for dealing with zip files.
    8 This kunzip.h is basically the the documentation on how to make calls
    9 to the library.  If you need help, feel free to email Michael Kohn.
   10 
   11 /mike
   12 mike@mikekohn.net
   13 http://www.mikekohn.net/
   14 
   15 */
   16 
   17 STRBUF *kunzip_next_tobuf(char *zip_filename, int offset);
   18 
   19 /*
   20 
   21 kunzip_get_offset_by_name - Search through a zip archive for a filename
   22                     that either partially or exactly matches.  If offset
   23                     is set to -1, the search will start at the start of
   24                     the file, otherwise the search will start at the next
   25                     file after the offset.
   26 
   27   Match Flags:
   28     bit 0: set to 1 if it should be exact filename match
   29            set to 0 if the archived filename only needs to contain that word
   30     bit 1: set to 1 if it should be case sensitive
   31            set to 0 if it should be case insensitive
   32 
   33     in other words:
   34       match_flags=0: case insensitive, partial match search
   35       match_flags=1: case insensitive, exact match search
   36       match_flags=2: case sensitive, partial match search
   37       match_flags=3: case insensitive, exact match search
   38 
   39 Examples:
   40 
   41   offset=kunzip_get_offset_by_name("test.zip","mike.c",0,-1);
   42   offset=kunzip_get_offset_by_name("test.zip","mike.c",0,offset);
   43 
   44   after the first line above runs, offset will point to the first file
   45   in test.zip that contains mike.c.  After the second line runs, offset
   46   will point to the next file in the archive whos filename contains
   47   mike.c.
   48 
   49 */
   50 
   51 int kunzip_get_offset_by_name(char *zip_filename, char *compressed_filename,
   52                   int match_flags, int skip_offset);
   53 
   54 /*
   55 
   56 kunzip_get_version - Get the current kunzip library version.
   57 
   58 Example:
   59 
   60   char version[128];
   61   kunzip_get_version(version);
   62   printf("%s\n",version);
   63 
   64 */
   65 
   66 int kunzip_get_version(char *version_string);