Create an empty section in a configuration file
#include <photon/PxProto.h> int PxConfigForceEmptySection( const char *section ); int PxConfigForceEmptySectionCx( PxCfgContext_t *cx, const char *section );
These functions create an empty section section if one doesn't exist.
|The configuration file must have been opened by PxConfigOpen*() with a mode of PXCONFIG_WRITE.|
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.
PxConfigForceEmptySection() writes to the currently open configuration file opened by PxConfigOpen(), while PxConfigForceEmptySectionCx() writes to the configuration file indicated by cx.