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/pxconfigreadllong.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/pxconfigreadllong.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/pxconfigreadllong.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/pxconfigreadllong.html on line 8
Read a long integer parameter from a configuration file
#include <photon/PxProto.h>
int PxConfigReadLLong( const char *section,
const char *entry,
long long dflt,
long long *value );
int PxConfigReadLLongCx( PxCfgContext_t *cx,
const char *section,
const char *entry,
long long dflt,
long long *value );
- cx
- PxConfigReadLLongCx() only. The configuration file handle for
the file you want to read from. This handle is returned by PxConfigOpenCx().
- section
- The section to read a value from.
If section is NULL, the function reads the value
from entry in the current section. If section is a valid
section name, it becomes the current section.
- entry
- The entry to read the value from.
- dflt
- The default to store in value if the specified section
or entry don't exist, or
if the entry value is not a valid long long (see below).
- value
- A pointer to a long long where the function stores the
value it reads.
phexlib
These functions read a long long parameter from the
specified section and entry of a
configuration file and stores it in *value.
The value can be signed. The characters after the sign determine the base:
Character(s):
|
Base: |
0x or 0X
|
Hexadecimal |
0
|
Octal |
Other digits
|
Decimal |
PxConfigReadLLong() reads from the currently open configuration
file opened by PxConfigOpen(),
while PxConfigReadLLongCx() 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*(),
PxConfigReadChar*(),
PxConfigReadDouble*(),
PxConfigReadInt*(),
PxConfigReadLong*(),
PxConfigReadShort*(),
PxConfigReadString*(),
PxConfigWriteBool*(),
PxConfigWriteChar*(),
PxConfigWriteDouble*(),
PxConfigWriteInt*(),
PxConfigWriteLLong*(),
PxConfigWriteLong*(),
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/pxconfigreadllong.html on line 187
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/pxconfigreadllong.html on line 187