BRender Technical Reference Manual:4 Data Structures (Alphabetical Reference):brfile_eof_cbfn
Next|Prev|Up
The Call-Back Function
Specification
CBFnFileEOF()

brfile_eof_cbfn


The Call-Back Function

This type defines an end of file test function, primarily intended for the eof member of the br_filesystem
125 structure.

The typedef

(See brfile.h for a precise declaration)

int brfile_eof_cbfn(const void *) Test for end of file

Specification


CBFnFileEOF()

Description:
An application defined call-back function testing a file pointer for end of file.

Declaration:
int BR_CALLBACK CBFnFileEOF(const void* f)

Arguments:
const void * f

Valid file handle - as returned by CBFnFileOpenRead()376 and CBFnFileOpenWrite()378.

Preconditions:
BRender has completed initialisation. BRender is the only direct caller of this function.

Effects:
None.

Result:
int

Returns a non-zero value after the first read operation that attempts to read past the end of the file. It returns 0 if the current position is not end of file.

Example:
See stdfile.c for examples of filing system functions.



Generated with CERN WebMaker