cxSetReadFunc(3)

NAME
cxSetReadFunc - Sets the read function for this file pointer.

SYNOPSIS
#include <comprex.h> void cxSetReadFunc(CxFP *fp, size_t(*)(void *, size_t, size_t, CxFP *) fnc);

PARAMETERS

fp  The file pointer.

fnc The read function.

DESCRIPTION
Sets the read function for this file pointer. This should work just like libc's fread() function, but with a CxFP instead of a FILE. It must read from the file stored in the archive. This function must be in the following format: The name of the function can be changed, of course.

RETURNS
Nothing.

SEE ALSO
cxSetCloseFunc(3), cxSetSeekFunc(3), cxSetWriteFunc(3)