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 );
phexlib
These functions create an empty section section if one doesn't exist.
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.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PxConfigDeleteSection*(), PxConfigOpen*()