-- see zlib.h -- */
(file)
| 456 | |
| 457 | /* -- see zlib.h -- */ |
| 458 | z_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 = (gz_statep)file; |
| 467 | if (state->mode != GZ_READ && state->mode != GZ_WRITE) |
| 468 | return -1; |
| 469 | |
| 470 | /* return position */ |
| 471 | return state->x.pos + (state->seek ? state->skip : 0); |
| 472 | } |
| 473 | |
| 474 | /* -- see zlib.h -- */ |
| 475 | z_off_t ZEXPORT gztell(file) |