Scroll to navigation

keyvalue.c(3elektra) Elektra keyvalue.c(3elektra)

NAME

keyvalue.c - Methods for Key value manipulation.

SYNOPSIS

#include 'kdbprivate.h'

Functions


const void * keyValue (const Key *key)

Return a pointer to the real internal key value. " const char * keyString (const Key *key)
Get the c-string representing the value. ssize_t keyGetValueSize (const Key *key)

Returns the number of bytes needed to store the key value, including the NULL terminator. " ssize_t keyGetString (const Key *key, char *returnedString, size_t maxSize)

Get the value of a key as a string. " ssize_t keySetString (Key *key, const char *newStringValue)
Set the value for key as newStringValue. ssize_t keyGetBinary (const Key *key, void *returnedBinary, size_t maxSize)

Get the value of a key as a binary. " ssize_t keySetBinary (Key *key, const void *newBinary, size_t dataSize)
Set the value of a key as a binary.

Detailed Description

Methods for Key value manipulation.

Copyright:

BSD License (see LICENSE.md or https://www.libelektra.org)

Author

Generated automatically by Doxygen for Elektra from the source code.

Mon Jan 15 2018 Version 0.8.20