zip_source_at_eof - Man Page
check if zip source is at end-of-file
Library
libzip (-lzip)
Synopsis
#include <zip.h>
int
zip_source_at_eof(zip_source_t *source);
Description
The function zip_source_at_eof() check if the current position in the source is at end-of-file.
Return Values
Return 1 if the source is at end-of-file, 0 if not, and -1 on error.
See Also
History
zip_source_at_eof() was added in libzip 1.12.
Authors
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>
Caveats
If the source does not support ZIP_SOURCE_AT_EOF, the library will try to read one byte to check for end-of-file. This byte will be returned on the next read.
Info
July 21, 2026