1ZIP_FREAD(3) BSD Library Functions Manual ZIP_FREAD(3)
2
4 zip_fread — read from file
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 zip_int64_t
13 zip_fread(zip_file_t *file, void *buf, zip_uint64_t nbytes);
14
16 The zip_fread() function reads at most nbytes bytes from file into buf.
17
19 If successful, the number of bytes actually read is returned. Otherwise,
20 -1 is returned.
21
23 libzip(3), zip_fclose(3), zip_fopen(3), zip_fseek(3)
24
26 zip_fread() was added in libzip 0.6. In libzip 0.10 the return type was
27 changed from ssize_t to zip_int64_t. In libzip 0.10 the type of nbytes
28 was changed from size_t to zip_uint64_t.
29
31 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
32
33BSD December 18, 2017 BSD