Create an empty section in a configuration file
#include <photon/PxProto.h> int PxConfigForceEmptySection( const char *section );
This function creates an empty section section if one doesn't exist.
![]() |
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.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PxConfigDeleteSection(), PxConfigOpen()