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

brfile_putline_cbfn


The Call-Back Function

This type defines a function to write a line of text to a file, primarily intended for the putline member of the br_filesystem
125 structure.

The typedef

(See brfile.h for a precise declaration)

void brfile_putline_cbfn(const char*, void*) Write a line of text

Specification


CBFnFilePutLine()

Description:
An application defined call-back function writing a line of text to a file, followed by writing the new-line character (`\n').

Declaration:
void BR_CALLBACK CBFnFilePutLine(const char* buf, void* f)

Arguments:
const char * buf

Pointer to zero terminated string containing line of text to be written.

void * f

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

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

Effects:
Write the string to the file. Write the new-line character to the file (`\n').

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



Generated with CERN WebMaker