ReactOS  0.4.15-dev-3295-gaa8fc87
gzclose.c File Reference
#include "gzguts.h"
Include dependency graph for gzclose.c:

Go to the source code of this file.


int ZEXPORT gzclose (gzFile file)

Function Documentation

◆ gzclose()

int ZEXPORT gzclose ( gzFile  file)

Definition at line 11 of file gzclose.c.

13 {
14 #ifndef NO_GZCOMPRESS
17  if (file == NULL)
18  return Z_STREAM_ERROR;
19  state = (gz_statep)file;
21  return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
22 #else
23  return gzclose_r(file);
24 #endif
25 }
Definition: zlib.h:118
#define GZ_READ
Definition: gzguts.h:160
int ZEXPORT gzclose_r(gzFile file)
Definition: gzread.c:627
int ZEXPORT gzclose_w(gzFile file)
Definition: gzwrite.c:627
static int state
Definition: maze.c:121
#define NULL
Definition: types.h:112
gz_state FAR * gz_statep
Definition: gzguts.h:202
Definition: fci.c:126