Prusa MINI Firmware overview
gzclose.c File Reference
#include "gzguts.h"

Functions

int ZEXPORT gzclose (gzFile file)
 

Function Documentation

◆ gzclose()

int ZEXPORT gzclose ( gzFile  file)
13 {
14 #ifndef NO_GZCOMPRESS
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 }
Here is the call graph for this function:
GZ_READ
#define GZ_READ
Definition: gzguts.h:161
Z_STREAM_ERROR
#define Z_STREAM_ERROR
Definition: zlib.h:181
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
NULL
#define NULL
Definition: usbd_def.h:53
gzclose_w
int ZEXPORT gzclose_w(gzFile file)
Definition: gzwrite.c:627
gz_statep
gz_state FAR * gz_statep
Definition: gzguts.h:203
gzclose_r
int ZEXPORT gzclose_r(gzFile file)
Definition: gzread.c:627