ixp_read, ixp_pread
- Provided by: libixp-dev (Version: 0.6~20121202+hg148-2)
- Source: libixp
- Report a bug
#include <ixp.h> long ixp_read(IxpCFid *fid, void *buf, long count); long ixp_pread(IxpCFid *fid, void *buf, long count, int64_t offset);
ixp_read and ixp_pread each read count bytes of data from the file pointed to by fid, into buf. ixp_read begins reading at its stored offset, and increments it by the number of bytes read. ixp_pread reads beginning at offset and does not alter fid's stored offset.
These functions return the number of bytes read on success and -1 on failure.