COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
gzclose.c File Reference
#include "gzguts.h"
Include dependency graph for gzclose.c:

Functions

int ZEXPORT gzclose (gzFile file)
 

Function Documentation

int ZEXPORT gzclose ( gzFile  file)
13 {
14 #ifndef NO_GZCOMPRESS
15  gz_statep state;
16 
17  if (file == NULL)
18  return Z_STREAM_ERROR;
19  state = (gz_statep)file;
20 
21  return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
22 #else
23  return gzclose_r(file);
24 #endif
25 }
#define GZ_READ
Definition: gzguts.h:151
#define Z_STREAM_ERROR
Definition: zlib.h:177
int ZEXPORT gzclose_r(gzFile file)
Definition: gzread.c:567
int ZEXPORT gzclose_w(gzFile file)
Definition: gzwrite.c:539
gz_state FAR * gz_statep
Definition: gzguts.h:193