Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
minigzip.c File Reference
#include "zlib.h"
#include <stdio.h>
Include dependency graph for minigzip.c:

Go to the source code of this file.

Macros

#define SET_BINARY_MODE(file)
 
#define GZ_SUFFIX   ".gz"
 
#define SUFFIX_LEN   (sizeof(GZ_SUFFIX)-1)
 
#define BUFLEN   16384
 
#define MAX_NAME_LEN   1024
 
#define local
 

Functions

int unlink OF ((const char *))
 
void error OF ((const char *msg))
 
void gz_compress OF ((FILE *in, gzFile out))
 
void gz_uncompress OF ((gzFile in, FILE *out))
 
void file_compress OF ((char *file, char *mode))
 
void file_uncompress OF ((char *file))
 
int main OF ((int argc, char *argv[]))
 
void error (char *msg) const
 
void gz_compress (FILE *in, gzFile out)
 
void gz_uncompress (gzFile in, FILE *out)
 
void file_compress (char *file, char *mode)
 
void file_uncompress (char *file)
 
int main (int argc, argv)
 

Variables

char * prog
 

Macro Definition Documentation

#define BUFLEN   16384

Definition at line 135 of file minigzip.c.

#define GZ_SUFFIX   ".gz"

Definition at line 131 of file minigzip.c.

#define local

Definition at line 142 of file minigzip.c.

#define MAX_NAME_LEN   1024

Definition at line 136 of file minigzip.c.

#define SET_BINARY_MODE (   file)

Definition at line 40 of file minigzip.c.

#define SUFFIX_LEN   (sizeof(GZ_SUFFIX)-1)

Definition at line 133 of file minigzip.c.

Function Documentation

void error ( char *  msg) const

Definition at line 351 of file minigzip.c.

void file_compress ( char *  file,
char *  mode 
)

Definition at line 457 of file minigzip.c.

void file_uncompress ( char *  file)

Definition at line 496 of file minigzip.c.

void gz_compress ( FILE *  in,
gzFile  out 
)

Definition at line 362 of file minigzip.c.

void gz_uncompress ( gzFile  in,
FILE *  out 
)

Definition at line 430 of file minigzip.c.

int main ( int  argc,
argv   
)

Definition at line 556 of file minigzip.c.

int unlink OF ( (const char *)  )
void error OF ( (const char *msg)  )
void gz_compress OF ( (FILE *in, gzFile out )
void gz_uncompress OF ( (gzFile in, FILE *out )
void file_compress OF ( (char *file, char *mode)  )
void file_uncompress OF ( (char *file )
int main OF ( (int argc, char *argv[])  )

Variable Documentation

char* prog

Definition at line 336 of file minigzip.c.