[Previous] [Contents] [Index] [Next]

PxConfigForceEmptySection()

Create an empty section in a configuration file

Synopsis:

#include <photon/PxProto.h>

int PxConfigForceEmptySection( const char *section );

Description:

This function creates an empty section section if one doesn't exist.


Note: The file must have been opened for PXCONFIG_WRITE-see PxConfigOpen().

Normally sections are created as necessary by the PxConfigWrite*() functions to hold entries, but sometimes the mere presence of a configuration section conveys application information. The new section is made the internal current section.

Returns:

Pt_TRUE
The section is created or exists.
Pt_FALSE
Otherwise.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PxConfigDeleteSection(), PxConfigOpen()


[Previous] [Contents] [Index] [Next]