Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
gzclose.c File Reference
#include "gzguts.h"

Go to the source code of this file.

Functions

int ZEXPORT gzclose (gzFile file)

Function Documentation

◆ gzclose()

int ZEXPORT gzclose ( gzFile file)

Definition at line 11 of file gzclose.c.

11 {
12#ifndef NO_GZCOMPRESS
13 gz_statep state;
14
15 if (file == NULL)
16 return Z_STREAM_ERROR;
17 state = (gz_statep)file;
18
19 return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
20#else
21 return gzclose_r(file);
22#endif
23}
gz_state FAR * gz_statep
Definition gzguts.h:202
#define GZ_READ
Definition gzguts.h:159
ZEXTERN int ZEXPORT gzclose_r(gzFile file)
Definition gzread.c:577
ZEXTERN int ZEXPORT gzclose_w(gzFile file)
Definition gzwrite.c:595
#define Z_STREAM_ERROR
Definition zlib.h:181