Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
minizip.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <utime.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "zip.h"
Include dependency graph for minizip.c:

Go to the source code of this file.

Macros

#define __USE_FILE_OFFSET64
 
#define __USE_LARGEFILE64
 
#define _LARGEFILE64_SOURCE
 
#define _FILE_OFFSET_BIT   64
 
#define FOPEN_FUNC(filename, mode)   fopen64(filename, mode)
 
#define FTELLO_FUNC(stream)   ftello64(stream)
 
#define FSEEKO_FUNC(stream, offset, origin)   fseeko64(stream, offset, origin)
 
#define WRITEBUFFERSIZE   (16384)
 
#define MAXFILENAME   (256)
 

Functions

uLong filetime (char *f, tm_zip *tmzip, uLong *dt)
 
int check_exist_file (char *filename) const
 
void do_banner ()
 
void do_help ()
 
int getFileCrc (const char *filenameinzip, void *buf, unsigned long size_buf, unsigned long *result_crc)
 
int isLargeFile (const char *filename)
 
int main (int argc, argv)
 

Macro Definition Documentation

#define __USE_FILE_OFFSET64

Definition at line 18 of file minizip.c.

#define __USE_LARGEFILE64

Definition at line 21 of file minizip.c.

#define _FILE_OFFSET_BIT   64

Definition at line 27 of file minizip.c.

#define _LARGEFILE64_SOURCE

Definition at line 24 of file minizip.c.

#define FOPEN_FUNC (   filename,
  mode 
)    fopen64(filename, mode)

Definition at line 37 of file minizip.c.

#define FSEEKO_FUNC (   stream,
  offset,
  origin 
)    fseeko64(stream, offset, origin)

Definition at line 39 of file minizip.c.

#define FTELLO_FUNC (   stream)    ftello64(stream)

Definition at line 38 of file minizip.c.

#define MAXFILENAME   (256)

Definition at line 71 of file minizip.c.

#define WRITEBUFFERSIZE   (16384)

Definition at line 70 of file minizip.c.

Function Documentation

int check_exist_file ( char*  filename) const

Definition at line 153 of file minizip.c.

void do_banner ( )

Definition at line 166 of file minizip.c.

void do_help ( )

Definition at line 172 of file minizip.c.

uLong filetime ( char *  f,
tm_zip tmzip,
uLong dt 
)

Definition at line 140 of file minizip.c.

int getFileCrc ( const char *  filenameinzip,
void *  buf,
unsigned long  size_buf,
unsigned long *  result_crc 
)

Definition at line 185 of file minizip.c.

int isLargeFile ( const char *  filename)

Definition at line 224 of file minizip.c.

int main ( int  argc,
argv   
)

Definition at line 246 of file minizip.c.