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

PxConfigDeleteSection()

Delete a section from a configuration file

Synopsis:

#include <photon/PxProto.h>

int PxConfigDeleteSection( const char *section);

Description:

This function deletes the section section from the configuration file.


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

All entries within the section (up to either the beginning of the next [] section or end-of-file) are deleted. The internal current section is cleared.

Returns:

Pt_TRUE
The section is deleted.
Pt_FALSE
Otherwise.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PxConfigDeleteEntry(), PxConfigForceEmptySection(), PxConfigOpen()


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