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

brfile_open_write_cbfn


The Call-Back Function

This type defines a function to open a file for writing, primarily intended for the open_write member of the br_filesystem
125 structure.

The typedef

(See brfile.h for a precise declaration)

void * brfile_open_write_cbfn(const char*, int) Open file for writing

Specification


CBFnFileOpenWrite()

Description:
Open a file for writing, overwriting any existing file of the same name.

Declaration:
void* BR_CALLBACK CBnFileOpenWrite(const char* name, int mode)

Arguments:
const char * name

Name to open file as.

int mode

Mode in which to open file (BR_FS_MODE_TEXT or BR_FS_MODE_BINARY).

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

Effects:
Overwrite or create file using specified name and mode.

Result:
void *

Return a file handle or Null if the file could not be opened.

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



Generated with
CERN WebMaker