74 const char* mode_fopen = NULL;
84 if ((filename!=NULL) && (mode_fopen != NULL))
85 file = fopen(filename, mode_fopen);
97 ret = (
uLong)fread(buf, 1, (
size_t)
size, (FILE *)stream);
109 ret = (
uLong)fwrite(buf, 1, (
size_t)
size, (FILE *)stream);
118 ret = ftell((FILE *)stream);
144 fseek((FILE *)stream, offset, fseek_origin);
153 ret = fclose((FILE *)stream);
162 ret = ferror((FILE *)stream);
176 pzlib_filefunc_def->opaque = NULL;
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER
voidpf ZCALLBACK fopen_file_func OF((voidpf opaque, const char *filename, int mode))
typedef uLong(ZCALLBACK *read_file_func) OF((voidpf opaque
long ZCALLBACK ftell_file_func(voidpf opaque, voidpf stream)
uLong ZCALLBACK fread_file_func(voidpf opaque, voidpf stream, void *buf, uLong size)
#define ZLIB_FILEFUNC_MODE_CREATE
#define ZLIB_FILEFUNC_SEEK_SET
voidpf ZCALLBACK fopen_file_func(voidpf opaque, const char *filename, int mode)
void fill_fopen_filefunc(zlib_filefunc_def *pzlib_filefunc_def)
#define ZLIB_FILEFUNC_SEEK_END
int ZCALLBACK fclose_file_func(voidpf opaque, voidpf stream)
long ZCALLBACK fseek_file_func(voidpf opaque, voidpf stream, uLong offset, int origin)
open_file_func zopen_file
#define ZLIB_FILEFUNC_SEEK_CUR
int ZCALLBACK ferror_file_func(voidpf opaque, voidpf stream)
uLong ZCALLBACK fwrite_file_func(voidpf opaque, voidpf stream, const void *buf, uLong size)
#define ZLIB_FILEFUNC_MODE_EXISTING
#define ZLIB_FILEFUNC_MODE_READ
typedef voidpf(ZCALLBACK *open_file_func) OF((voidpf opaque