MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gztell64

Function gztell64

freebsd/contrib/zstd/zlibWrapper/gzlib.c:458–472  ·  view source on GitHub ↗

-- see zlib.h -- */

(file)

Source from the content-addressed store, hash-verified

456
457/* -- see zlib.h -- */
458z_off64_t ZEXPORT gztell64(file)
459 gzFile file;
460{
461 gz_statep state;
462
463 /* get internal structure and check integrity */
464 if (file == NULL)
465 return -1;
466 state.file = file;
467 if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
468 return -1;
469
470 /* return position */
471 return state.state->x.pos + (state.state->seek ? state.state->skip : 0);
472}
473
474/* -- see zlib.h -- */
475z_off_t ZEXPORT gztell(file)

Callers 1

gztellFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected