CFL v0.5 - Reference Manual


extern cflh_t cfl_read

(const char* INPUT_FILE_NAME )

Creates a cfl handle from a file.

Documentation

Creates a cfl handle from a file. Open and the file INPUT_FILE_NAME to create a new cfl handle. The file is closed after a call to this function. Read the file grammar.txt to in the doc/ directory of the distribution to learn which kind of files this function could read.
Parameters:
INPUT_FILE_NAME - The name of the configuration file to read
Returns:
the newly allocated handle in case of success.
NULL in case of failure. WARNING: this function is *NOT* reentrant, so you should lock a mutex before calling it and unlock the mutex after the call.
Preconditions:
nothing
See Also:
cfl_alloc()
cfl_free()
cfl_write()
cfl_write_xml()

Alphabetic index


CFL Reference Manual
Last modified: Wed Nov 13 15:55:38 CET 2002