PxConfigWriteChar()
Write a character parameter in a configuration file
Synopsis:
#include <photon/PxProto.h>
int PxConfigWriteChar( const char *section,
const char *entry,
int format,
char value);
Description:
PxConfigWriteChar() writes a character parameter in the specified section and entry of the configuration file. If section is NULL, the parameter is written in the specified entry in the current section. If the parameter value was present in the file, it's overwritten with its new value; otherwise, it's added to the end of the section.
![]() |
|
The format parameter determines how the value is formatted:
- PXCONFIG_FMT_CHAR_CHAR
- As a single character (letter/digit).
- PXCONFIG_FMT_CHAR_HEX
- As a 2-digit hex number with leading 0x.
Returns:
Pt_TRUE if the entry is written, otherwise Pt_FALSE
Classification:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
PxConfigOpen(), PxConfigReadBool(), PxConfigReadChar(), PxConfigReadInt(), PxConfigReadLong(), PxConfigReadShort(), PxConfigReadString(), PxConfigWriteBool(), PxConfigWriteInt(), PxConfigWriteLong(), PxConfigWriteShort(), PxConfigWriteString()

