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/pxconfigwritechar.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/pxconfigwritechar.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/pxconfigwritechar.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/pxconfigwritechar.html on line 8
Write a character parameter in a configuration file
#include <photon/PxProto.h>
int PxConfigWriteChar( const char *section,
const char *entry,
int format,
char value);
int PxConfigWriteCharCx( PxCfgContext_t *cx,
const char *section,
const char *entry,
int format,
char value);
- cx
- PxConfigWriteCharCx() only. The configuration file handle for
the file you want to write to. This handle is returned by PxConfigOpenCx().
- section
- The section to write value to.
If section matches a valid section name, it becomes the current
section. If section is NULL, the function writes to
the current section. If section doesn't exist, the function creates
it and makes it the current section.
- entry
- The entry to write value to. If the entry already exists in
the current section, it's overwritten; otherwise, it's added to the end of the
section.
- format
- 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.
- value
- The value which the function writes to the file.
phexlib
These functions write a character parameter in the
specified section and entry of a
configuration file.
PxConfigWriteChar() writes to the currently open configuration
file opened by PxConfigOpen(),
while PxConfigWriteCharCx() 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*(),
PxConfigWriteBool*(),
PxConfigWriteDouble*(),
PxConfigWriteInt*(),
PxConfigWriteLong*(),
PxConfigWriteLLong*(),
PxConfigWriteShort*(),
PxConfigWriteString*()
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/pxconfigwritechar.html on line 194
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/pxconfigwritechar.html on line 194