Write a Boolean parameter in a configuration file
#include <photon/PxProto.h> int PxConfigWriteBool( const char *section, const char *entry, int format, int value ); int PxConfigWriteBoolCx( PxCfgContext_t *cx, const char *section, const char *entry, int format, int value );
Format | Output |
---|---|
PXCONFIG_FMT_BOOL_ON | OFF or ON |
PXCONFIG_FMT_BOOL_YES | NO or YES |
PXCONFIG_FMT_BOOL_TRUE | FALSE or TRUE |
phexlib
These functions write a Boolean parameter in the specified section and entry of a configuration file.
|
PxConfigWriteBool() writes to the currently open configuration file opened by PxConfigOpen(), while PxConfigWriteBoolCx() writes to the configuration file indicated by cx.
Pt_TRUE if the entry is written, otherwise Pt_FALSE
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PxConfigOpen*(), PxConfigReadBool*(), PxConfigReadChar*(), PxConfigReadDouble*(), PxConfigReadInt*(), PxConfigReadLLong*(), PxConfigReadLong*(), PxConfigReadShort*(), PxConfigReadString*(), PxConfigWriteChar*(), PxConfigWriteDouble*(), PxConfigWriteInt*(), PxConfigWriteLLong*(), PxConfigWriteLong*(), PxConfigWriteShort*(), PxConfigWriteString*()