Close a configuration file
#include <photon/PxProto.h> int PxConfigClose( void ); int PxConfigCloseCx(PxCfgContext_t *cx);
phexlib
These functions close a configuration file, and release all the resources associated with that file.
PxConfigClose() closes the currently opened configuration file (opened using PxConfigOpen()). It doesn't do anything and returns Pt_FALSE if there's no currently opened configuration file.
PxConfigCloseCx() closes the configuration file indicated by cx (opened using PxConfigOpenCx()). It doesn't do anything and returns Pt_FALSE if cx is NULL.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |