ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
gzclose.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "misc/util/abc_global.h"
#include "gzguts.h"
Include dependency graph for gzclose.c:

Go to the source code of this file.

Functions

ABC_NAMESPACE_IMPL_START int ZEXPORT gzclose (gzFile file)
 

Function Documentation

◆ gzclose()

Definition at line 18 of file gzclose.c.

19{
20#ifndef NO_GZCOMPRESS
21 gz_statep state;
22
23 if (file == NULL)
24 return Z_STREAM_ERROR;
25 state = (gz_statep)file;
26
27 return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
28#else
29 return gzclose_r(file);
30#endif
31}
gz_state FAR * gz_statep
Definition gzguts.h:129
#define GZ_READ
Definition gzguts.h:89
int ZEXPORT gzclose_r(gzFile file)
Definition gzread.c:612
int ZEXPORT gzclose_w(gzFile file)
Definition gzwrite.c:486
Definition file.h:23
#define Z_STREAM_ERROR
Definition zlib.h:185
Here is the call graph for this function:
Here is the caller graph for this function: