MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / gzeof

Function gzeof

ZLib/gzlib.c:511–525  ·  view source on GitHub ↗

-- see zlib.h -- */

(file)

Source from the content-addressed store, hash-verified

509
510/* -- see zlib.h -- */
511int ZEXPORT gzeof(file)
512 gzFile file;
513{
514 gz_statep state;
515
516 /* get internal structure and check integrity */
517 if (file == NULL)
518 return 0;
519 state = (gz_statep)file;
520 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
521 return 0;
522
523 /* return end-of-file state */
524 return state->mode == GZ_READ ? state->past : 0;
525}
526
527/* -- see zlib.h -- */
528const char * ZEXPORT gzerror(file, errnum)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected