cxRead(3)

NAME
cxRead - Reads data from a file pointer.

SYNOPSIS
#include <comprex.h> size_t cxRead(void *ptr, size_t size, size_t nmemb, CxFP *fp);

PARAMETERS

ptr The buffer which will store the data.

size
    The size of an element of data.

nmemb
    The number of elements of size @size to receive.

fp  The file pointer to read from.

DESCRIPTION
Reads data from a file pointer.

RETURNS
The number of elements read, or 0 on error or end of file.

SEE ALSO
cxRewind(3), cxSeek(3), cxTell(3), cxWrite(3)