-- see zlib.h -- */
(file)
| 509 | |
| 510 | /* -- see zlib.h -- */ |
| 511 | int 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 -- */ |
| 528 | const char * ZEXPORT gzerror(file, errnum) |
nothing calls this directly
no outgoing calls
no test coverage detected