brfile_getchr_cbfn
getchr
member of the br_filesystem
125
structure.
typedef
brfile.h
for a precise declaration)
int brfile_getchr_cbfn(void *) Get character
Specification
Description:
An application defined call-back function reading a character from a file.CBFnFileGetChr()
int BR_CALLBACK CBFnFileGetChr(void* f)
void * f
.
Preconditions: BRender has completed initialisation. BRender is the only direct caller of this function.
Effects: If the file position is at the end of the file, the file enters the end-of-file state, otherwise a character is read and the file position is advanced.
Result:
int
The character read from the file is returned (as though the character had been cast as (int)(unsigned char)
). If a character could not be read because the file position was at the end of the file, BR_EOF
is returned.
Example: See
stdfile.c
for examples of filing system functions.