|
Elektra 0.11.0
|
Elektra High Level API. More...
#include "kdbease.h"#include "kdbhelper.h"#include <ctype.h>#include <errno.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include "macros/type_create_to_value.h"Functions | |
| int | elektraKeyToString (const Key *key, const char **variable) |
| Converts a Key to string. | |
| int | elektraKeyToBoolean (const Key *key, kdb_boolean_t *variable) |
| Converts a Key to boolean. | |
| int | elektraKeyToChar (const Key *key, kdb_char_t *variable) |
| Converts a Key to char. | |
| int | elektraKeyToOctet (const Key *key, kdb_octet_t *variable) |
| Converts a Key to octet. | |
| int | elektraKeyToShort (const Key *key, kdb_short_t *variable) |
| Converts a Key to short. | |
| int | elektraKeyToUnsignedShort (const Key *key, kdb_unsigned_short_t *variable) |
| Converts a Key to unsigned_short. | |
| int | elektraKeyToLong (const Key *key, kdb_long_t *variable) |
| Converts a Key to long. | |
| int | elektraKeyToUnsignedLong (const Key *key, kdb_unsigned_long_t *variable) |
| Converts a Key to unsigned_long. | |
| int | elektraKeyToLongLong (const Key *key, kdb_long_long_t *variable) |
| Converts a Key to long_long. | |
| int | elektraKeyToUnsignedLongLong (const Key *key, kdb_unsigned_long_long_t *variable) |
| Converts a Key to unsigned_long_long. | |
| int | elektraKeyToFloat (const Key *key, kdb_float_t *variable) |
| Converts a Key to float. | |
| int | elektraKeyToDouble (const Key *key, kdb_double_t *variable) |
| Converts a Key to double. | |
| char * | elektraBooleanToString (kdb_boolean_t value) |
| Converts a boolean to string. | |
| char * | elektraCharToString (kdb_char_t value) |
| Converts a char to string. | |
| char * | elektraOctetToString (kdb_octet_t value) |
| Converts an octet to string. | |
| char * | elektraShortToString (kdb_short_t value) |
| Converts a short to string. | |
| char * | elektraUnsignedShortToString (kdb_unsigned_short_t value) |
| Converts an unsigned short to string. | |
| char * | elektraLongToString (kdb_long_t value) |
| Converts a long to string. | |
| char * | elektraUnsignedLongToString (kdb_unsigned_long_t value) |
| Converts an unsigned long to string. | |
| char * | elektraLongLongToString (kdb_long_long_t value) |
| Converts a long long to string. | |
| char * | elektraUnsignedLongLongToString (kdb_unsigned_long_long_t value) |
| Converts an unsigned long long to string. | |
| char * | elektraFloatToString (kdb_float_t value) |
| Converts a float to string. | |
| char * | elektraDoubleToString (kdb_double_t value) |
| Converts a double to string. | |
Elektra High Level API.
| char * elektraBooleanToString | ( | kdb_boolean_t | value | ) |
Converts a boolean to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the boolean to convert |
| char * elektraCharToString | ( | kdb_char_t | value | ) |
Converts a char to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| char * elektraDoubleToString | ( | kdb_double_t | value | ) |
Converts a double to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| char * elektraFloatToString | ( | kdb_float_t | value | ) |
Converts a float to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| int elektraKeyToBoolean | ( | const Key * | key, |
| kdb_boolean_t * | variable | ||
| ) |
Converts a Key to boolean.
The value "1" is regarded as true, anything is as false.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToChar | ( | const Key * | key, |
| kdb_char_t * | variable | ||
| ) |
Converts a Key to char.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToDouble | ( | const Key * | key, |
| kdb_double_t * | variable | ||
| ) |
Converts a Key to double.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToFloat | ( | const Key * | key, |
| kdb_float_t * | variable | ||
| ) |
Converts a Key to float.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToLong | ( | const Key * | key, |
| kdb_long_t * | variable | ||
| ) |
Converts a Key to long.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToLongLong | ( | const Key * | key, |
| kdb_long_long_t * | variable | ||
| ) |
Converts a Key to long_long.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToOctet | ( | const Key * | key, |
| kdb_octet_t * | variable | ||
| ) |
Converts a Key to octet.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToShort | ( | const Key * | key, |
| kdb_short_t * | variable | ||
| ) |
Converts a Key to short.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToString | ( | const Key * | key, |
| const char ** | variable | ||
| ) |
Converts a Key to string.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToUnsignedLong | ( | const Key * | key, |
| kdb_unsigned_long_t * | variable | ||
| ) |
Converts a Key to unsigned_long.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToUnsignedLongLong | ( | const Key * | key, |
| kdb_unsigned_long_long_t * | variable | ||
| ) |
Converts a Key to unsigned_long_long.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| int elektraKeyToUnsignedShort | ( | const Key * | key, |
| kdb_unsigned_short_t * | variable | ||
| ) |
Converts a Key to unsigned_short.
The variable pointed to by variable is unchanged, if an error occurs.
| key | the key to convert |
| variable | pointer to the output variable |
| 1 | on success |
| 0 | otherwise |
| char * elektraLongLongToString | ( | kdb_long_long_t | value | ) |
Converts a long long to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| char * elektraLongToString | ( | kdb_long_t | value | ) |
Converts a long to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| char * elektraOctetToString | ( | kdb_octet_t | value | ) |
Converts an octet to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| char * elektraShortToString | ( | kdb_short_t | value | ) |
Converts a short to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| char * elektraUnsignedLongLongToString | ( | kdb_unsigned_long_long_t | value | ) |
Converts an unsigned long long to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| char * elektraUnsignedLongToString | ( | kdb_unsigned_long_t | value | ) |
Converts an unsigned long to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |
| char * elektraUnsignedShortToString | ( | kdb_unsigned_short_t | value | ) |
Converts an unsigned short to string.
The string is allocated with elektraMalloc() and must be disposed of with elektraFree().
| value | the value to convert |