Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/px/pxconfigdeletesection.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/px/pxconfigdeletesection.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/px/pxconfigdeletesection.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/px/pxconfigdeletesection.html on line 8

PxConfigDeleteSection(), PxConfigDeleteSectionCx()

Delete a section from a configuration file

Synopsis:

#include <photon/PxProto.h>

int PxConfigDeleteSection( const char *section);

int PxConfigDeleteSectionCx(  PxCfgContext_t *cx,
                              const char *section);

Arguments:

cx
PxConfigDeleteSectionCx() only. The configuration file handle for the file you want to delete a section from. This handle is returned by PxConfigOpenCx().
section
The section to delete.
All entries within the section (up to either the beginning of the next [] section or end-of-file) are deleted. If the deleted section was current, current section is set to none; otherwise, the current section is not changed.
If section is NULL, then the current section is deleted, and the current section is set to “none”.

Library:

phexlib

Description:

These functions delete the section section from the configuration file.


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

PxConfigDeleteSection() deletes a section from the currently open configuration file opened by PxConfigOpen(), while PxConfigDeleteSectionCx() deletes a section from the configuration file indicated by cx.

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*()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/px/pxconfigdeletesection.html on line 142

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/px/pxconfigdeletesection.html on line 142