Functions |
znzFile | znzopen (const char *path,const char *mode,int use_compression) |
znzFile | znzdopen (int fd,const char *mode,int use_compression) |
int | Xznzclose (znzFile *file) |
size_t | znzread (void *buf,size_t size,size_t nmemb,znzFile file) |
size_t | znzwrite (const void *buf,size_t size,size_t nmemb,znzFile file) |
long | znzseek (znzFile file,long offset,int whence) |
int | znzrewind (znzFile stream) |
long | znztell (znzFile file) |
int | znzputs (const char *str,znzFile file) |
char* | znzgets (char *str,int size,znzFile file) |
int | znzflush (znzFile file) |
int | znzeof (znzFile file) |
int | znzputc (int c,znzFile file) |
int | znzgetc (znzFile file) |
int | znzprintf (znzFile stream,const char *format,...) |
This library provides an interface to both compressed (gzip/zlib) and uncompressed (normal) file IO. The functions are written to have the same interface as the standard file IO functions.
To use this library instead of normal file IO, the following changes are required: