Read a character parameter from a configuration file
#include <photon/PxProto.h> int PxConfigReadChar( const char *section, const char *entry, char dflt, char *value ); int PxConfigReadCharCx( PxCfgContext_t *cx, const char *section, const char *entry, char dflt, char *value );
phexlib
These functions read a character parameter from a configuration file.
PxConfigReadChar() reads from the currently open configuration file opened by PxConfigOpen(), while PxConfigReadCharCx() reads from the configuration file indicated by cx.
Pt_TRUE if the required section/entry exists and the given value is valid, otherwise Pt_FALSE.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PxConfigOpen*(), PxConfigReadBool*(), PxConfigReadDouble*(), PxConfigReadInt*(), PxConfigReadLLong*(), PxConfigReadLong*(), PxConfigReadShort*(), PxConfigReadString*(), PxConfigWriteBool*(), PxConfigWriteChar*(), PxConfigWriteDouble*(), PxConfigWriteInt*(), PxConfigWriteLLong*(), PxConfigWriteLong*(), PxConfigWriteShort*(), PxConfigWriteString*()