\hypertarget{conversion_8c}{}\doxysection{conversion.\+c File Reference}
\label{conversion_8c}\index{conversion.c@{conversion.c}}


Elektra High Level API.  


{\ttfamily \#include \char`\"{}kdbease.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}kdbhelper.\+h\char`\"{}}\newline
{\ttfamily \#include $<$ctype.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include \char`\"{}macros/type\+\_\+create\+\_\+to\+\_\+value.\+h\char`\"{}}\newline
Include dependency graph for conversion.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{conversion_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{conversion_8c_a16e8059663a3de110484eab201709eb4}{elektra\+Key\+To\+String}} (const Key $\ast$key, const char $\ast$$\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to string. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_a8e4817289b371b40c08f5da10ec38527}{elektra\+Key\+To\+Boolean}} (const Key $\ast$key, kdb\+\_\+boolean\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to boolean. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_aff6749a333d27607eb3a21da8bad600d}{elektra\+Key\+To\+Char}} (const Key $\ast$key, kdb\+\_\+char\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to char. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_a003a912701e34f10070a499a7b496815}{elektra\+Key\+To\+Octet}} (const Key $\ast$key, kdb\+\_\+octet\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to octet. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_a934df394afd78be78b8fdd1c68562973}{elektra\+Key\+To\+Short}} (const Key $\ast$key, kdb\+\_\+short\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to short. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_a5726b234ba132eabf94ad8889a5d5bdc}{elektra\+Key\+To\+Unsigned\+Short}} (const Key $\ast$key, kdb\+\_\+unsigned\+\_\+short\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to unsigned\+\_\+short. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_ae379281e9d6b5574419ffd3858d40663}{elektra\+Key\+To\+Long}} (const Key $\ast$key, kdb\+\_\+long\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to long. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_af8c96e0e01a1b6afab4eef79e40be5f0}{elektra\+Key\+To\+Unsigned\+Long}} (const Key $\ast$key, kdb\+\_\+unsigned\+\_\+long\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to unsigned\+\_\+long. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_acdaedf3adb6687c6550d5e8c413eaa10}{elektra\+Key\+To\+Long\+Long}} (const Key $\ast$key, kdb\+\_\+long\+\_\+long\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to long\+\_\+long. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_a803a9e8b16991ffeb278e7f033a5ba4d}{elektra\+Key\+To\+Unsigned\+Long\+Long}} (const Key $\ast$key, kdb\+\_\+unsigned\+\_\+long\+\_\+long\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to unsigned\+\_\+long\+\_\+long. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_a84d97e485f97c127081e433699ab2dfe}{elektra\+Key\+To\+Float}} (const Key $\ast$key, kdb\+\_\+float\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to float. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{conversion_8c_ad628a499bb312021f306889ef626f124}{elektra\+Key\+To\+Double}} (const Key $\ast$key, kdb\+\_\+double\+\_\+t $\ast$variable)
\begin{DoxyCompactList}\small\item\em Converts a Key to double. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a7486f5eeb914ce8db8c567899d14e74b}{elektra\+Boolean\+To\+String}} (kdb\+\_\+boolean\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts a boolean to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a99da012e41890a1724552a41233ca090}{elektra\+Char\+To\+String}} (kdb\+\_\+char\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts a char to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a41eb221e2d078379b529043072d7c04a}{elektra\+Octet\+To\+String}} (kdb\+\_\+octet\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts an octet to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a23844987ff9a867e2e71e58b3a5df4a2}{elektra\+Short\+To\+String}} (kdb\+\_\+short\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts a short to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a89e1fdc9fa3ded751f2d6be857e1e1eb}{elektra\+Unsigned\+Short\+To\+String}} (kdb\+\_\+unsigned\+\_\+short\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts an unsigned short to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a8f5864d60d51e3fa6c64eb0e51b42288}{elektra\+Long\+To\+String}} (kdb\+\_\+long\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts a long to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a19fabb4874c7f8463667204a6d30688b}{elektra\+Unsigned\+Long\+To\+String}} (kdb\+\_\+unsigned\+\_\+long\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts an unsigned long to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a3798a6d59fe05cdf3f3f416cccb1cbbb}{elektra\+Long\+Long\+To\+String}} (kdb\+\_\+long\+\_\+long\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts a long long to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a282e0a271e8302dccc22501d88ec5257}{elektra\+Unsigned\+Long\+Long\+To\+String}} (kdb\+\_\+unsigned\+\_\+long\+\_\+long\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts an unsigned long long to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_af0ed690223e94330733fe9497f652acf}{elektra\+Float\+To\+String}} (kdb\+\_\+float\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts a float to string. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{conversion_8c_a4b9617879312fe01d6e679a6c6f4ff92}{elektra\+Double\+To\+String}} (kdb\+\_\+double\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Converts a double to string. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Elektra High Level API. 

\begin{DoxyCopyright}{Copyright}
BSD License (see doc/\+LICENSE.\+md or \href{http://www.libelektra.org}{\texttt{ http\+://www.\+libelektra.\+org}}) 
\end{DoxyCopyright}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{conversion_8c_a7486f5eeb914ce8db8c567899d14e74b}\label{conversion_8c_a7486f5eeb914ce8db8c567899d14e74b}} 
\index{conversion.c@{conversion.c}!elektraBooleanToString@{elektraBooleanToString}}
\index{elektraBooleanToString@{elektraBooleanToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraBooleanToString()}{elektraBooleanToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Boolean\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+boolean\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts a boolean to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the boolean to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a99da012e41890a1724552a41233ca090}\label{conversion_8c_a99da012e41890a1724552a41233ca090}} 
\index{conversion.c@{conversion.c}!elektraCharToString@{elektraCharToString}}
\index{elektraCharToString@{elektraCharToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraCharToString()}{elektraCharToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Char\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+char\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts a char to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a4b9617879312fe01d6e679a6c6f4ff92}\label{conversion_8c_a4b9617879312fe01d6e679a6c6f4ff92}} 
\index{conversion.c@{conversion.c}!elektraDoubleToString@{elektraDoubleToString}}
\index{elektraDoubleToString@{elektraDoubleToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraDoubleToString()}{elektraDoubleToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Double\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+double\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts a double to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_af0ed690223e94330733fe9497f652acf}\label{conversion_8c_af0ed690223e94330733fe9497f652acf}} 
\index{conversion.c@{conversion.c}!elektraFloatToString@{elektraFloatToString}}
\index{elektraFloatToString@{elektraFloatToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraFloatToString()}{elektraFloatToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Float\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+float\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts a float to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a8e4817289b371b40c08f5da10ec38527}\label{conversion_8c_a8e4817289b371b40c08f5da10ec38527}} 
\index{conversion.c@{conversion.c}!elektraKeyToBoolean@{elektraKeyToBoolean}}
\index{elektraKeyToBoolean@{elektraKeyToBoolean}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToBoolean()}{elektraKeyToBoolean()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Boolean (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+boolean\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to boolean. 

The value \char`\"{}1\char`\"{} is regarded as true, anything is as false.

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_aff6749a333d27607eb3a21da8bad600d}\label{conversion_8c_aff6749a333d27607eb3a21da8bad600d}} 
\index{conversion.c@{conversion.c}!elektraKeyToChar@{elektraKeyToChar}}
\index{elektraKeyToChar@{elektraKeyToChar}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToChar()}{elektraKeyToChar()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Char (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+char\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to char. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_ad628a499bb312021f306889ef626f124}\label{conversion_8c_ad628a499bb312021f306889ef626f124}} 
\index{conversion.c@{conversion.c}!elektraKeyToDouble@{elektraKeyToDouble}}
\index{elektraKeyToDouble@{elektraKeyToDouble}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToDouble()}{elektraKeyToDouble()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Double (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+double\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to double. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_a84d97e485f97c127081e433699ab2dfe}\label{conversion_8c_a84d97e485f97c127081e433699ab2dfe}} 
\index{conversion.c@{conversion.c}!elektraKeyToFloat@{elektraKeyToFloat}}
\index{elektraKeyToFloat@{elektraKeyToFloat}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToFloat()}{elektraKeyToFloat()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Float (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+float\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to float. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_ae379281e9d6b5574419ffd3858d40663}\label{conversion_8c_ae379281e9d6b5574419ffd3858d40663}} 
\index{conversion.c@{conversion.c}!elektraKeyToLong@{elektraKeyToLong}}
\index{elektraKeyToLong@{elektraKeyToLong}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToLong()}{elektraKeyToLong()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Long (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+long\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to long. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_acdaedf3adb6687c6550d5e8c413eaa10}\label{conversion_8c_acdaedf3adb6687c6550d5e8c413eaa10}} 
\index{conversion.c@{conversion.c}!elektraKeyToLongLong@{elektraKeyToLongLong}}
\index{elektraKeyToLongLong@{elektraKeyToLongLong}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToLongLong()}{elektraKeyToLongLong()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Long\+Long (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+long\+\_\+long\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to long\+\_\+long. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_a003a912701e34f10070a499a7b496815}\label{conversion_8c_a003a912701e34f10070a499a7b496815}} 
\index{conversion.c@{conversion.c}!elektraKeyToOctet@{elektraKeyToOctet}}
\index{elektraKeyToOctet@{elektraKeyToOctet}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToOctet()}{elektraKeyToOctet()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Octet (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+octet\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to octet. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_a934df394afd78be78b8fdd1c68562973}\label{conversion_8c_a934df394afd78be78b8fdd1c68562973}} 
\index{conversion.c@{conversion.c}!elektraKeyToShort@{elektraKeyToShort}}
\index{elektraKeyToShort@{elektraKeyToShort}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToShort()}{elektraKeyToShort()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Short (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+short\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to short. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_a16e8059663a3de110484eab201709eb4}\label{conversion_8c_a16e8059663a3de110484eab201709eb4}} 
\index{conversion.c@{conversion.c}!elektraKeyToString@{elektraKeyToString}}
\index{elektraKeyToString@{elektraKeyToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToString()}{elektraKeyToString()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+String (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{const char $\ast$$\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to string. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_af8c96e0e01a1b6afab4eef79e40be5f0}\label{conversion_8c_af8c96e0e01a1b6afab4eef79e40be5f0}} 
\index{conversion.c@{conversion.c}!elektraKeyToUnsignedLong@{elektraKeyToUnsignedLong}}
\index{elektraKeyToUnsignedLong@{elektraKeyToUnsignedLong}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToUnsignedLong()}{elektraKeyToUnsignedLong()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Unsigned\+Long (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+unsigned\+\_\+long\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to unsigned\+\_\+long. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_a803a9e8b16991ffeb278e7f033a5ba4d}\label{conversion_8c_a803a9e8b16991ffeb278e7f033a5ba4d}} 
\index{conversion.c@{conversion.c}!elektraKeyToUnsignedLongLong@{elektraKeyToUnsignedLongLong}}
\index{elektraKeyToUnsignedLongLong@{elektraKeyToUnsignedLongLong}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToUnsignedLongLong()}{elektraKeyToUnsignedLongLong()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Unsigned\+Long\+Long (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+unsigned\+\_\+long\+\_\+long\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to unsigned\+\_\+long\+\_\+long. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_a5726b234ba132eabf94ad8889a5d5bdc}\label{conversion_8c_a5726b234ba132eabf94ad8889a5d5bdc}} 
\index{conversion.c@{conversion.c}!elektraKeyToUnsignedShort@{elektraKeyToUnsignedShort}}
\index{elektraKeyToUnsignedShort@{elektraKeyToUnsignedShort}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraKeyToUnsignedShort()}{elektraKeyToUnsignedShort()}}
{\footnotesize\ttfamily int elektra\+Key\+To\+Unsigned\+Short (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{kdb\+\_\+unsigned\+\_\+short\+\_\+t $\ast$}]{variable }\end{DoxyParamCaption})}



Converts a Key to unsigned\+\_\+short. 

The variable pointed to by {\ttfamily variable} is unchanged, if an error occurs.


\begin{DoxyParams}{Parameters}
{\em key} & the key to convert \\
\hline
{\em variable} & pointer to the output variable \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 1} & on success \\
\hline
{\em 0} & otherwise \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{conversion_8c_a3798a6d59fe05cdf3f3f416cccb1cbbb}\label{conversion_8c_a3798a6d59fe05cdf3f3f416cccb1cbbb}} 
\index{conversion.c@{conversion.c}!elektraLongLongToString@{elektraLongLongToString}}
\index{elektraLongLongToString@{elektraLongLongToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraLongLongToString()}{elektraLongLongToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Long\+Long\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+long\+\_\+long\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts a long long to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a8f5864d60d51e3fa6c64eb0e51b42288}\label{conversion_8c_a8f5864d60d51e3fa6c64eb0e51b42288}} 
\index{conversion.c@{conversion.c}!elektraLongToString@{elektraLongToString}}
\index{elektraLongToString@{elektraLongToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraLongToString()}{elektraLongToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Long\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+long\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts a long to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a41eb221e2d078379b529043072d7c04a}\label{conversion_8c_a41eb221e2d078379b529043072d7c04a}} 
\index{conversion.c@{conversion.c}!elektraOctetToString@{elektraOctetToString}}
\index{elektraOctetToString@{elektraOctetToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraOctetToString()}{elektraOctetToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Octet\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+octet\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts an octet to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a23844987ff9a867e2e71e58b3a5df4a2}\label{conversion_8c_a23844987ff9a867e2e71e58b3a5df4a2}} 
\index{conversion.c@{conversion.c}!elektraShortToString@{elektraShortToString}}
\index{elektraShortToString@{elektraShortToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraShortToString()}{elektraShortToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Short\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+short\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts a short to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a282e0a271e8302dccc22501d88ec5257}\label{conversion_8c_a282e0a271e8302dccc22501d88ec5257}} 
\index{conversion.c@{conversion.c}!elektraUnsignedLongLongToString@{elektraUnsignedLongLongToString}}
\index{elektraUnsignedLongLongToString@{elektraUnsignedLongLongToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraUnsignedLongLongToString()}{elektraUnsignedLongLongToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Unsigned\+Long\+Long\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+unsigned\+\_\+long\+\_\+long\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts an unsigned long long to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a19fabb4874c7f8463667204a6d30688b}\label{conversion_8c_a19fabb4874c7f8463667204a6d30688b}} 
\index{conversion.c@{conversion.c}!elektraUnsignedLongToString@{elektraUnsignedLongToString}}
\index{elektraUnsignedLongToString@{elektraUnsignedLongToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraUnsignedLongToString()}{elektraUnsignedLongToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Unsigned\+Long\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+unsigned\+\_\+long\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts an unsigned long to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
\mbox{\Hypertarget{conversion_8c_a89e1fdc9fa3ded751f2d6be857e1e1eb}\label{conversion_8c_a89e1fdc9fa3ded751f2d6be857e1e1eb}} 
\index{conversion.c@{conversion.c}!elektraUnsignedShortToString@{elektraUnsignedShortToString}}
\index{elektraUnsignedShortToString@{elektraUnsignedShortToString}!conversion.c@{conversion.c}}
\doxysubsubsection{\texorpdfstring{elektraUnsignedShortToString()}{elektraUnsignedShortToString()}}
{\footnotesize\ttfamily char$\ast$ elektra\+Unsigned\+Short\+To\+String (\begin{DoxyParamCaption}\item[{kdb\+\_\+unsigned\+\_\+short\+\_\+t}]{value }\end{DoxyParamCaption})}



Converts an unsigned short to string. 

The string is allocated with \mbox{\hyperlink{internal_8c_a35cdc2e5caed3454cb73b4fc7f37858c}{elektra\+Malloc()}} and must be disposed of with \mbox{\hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}}.


\begin{DoxyParams}{Parameters}
{\em value} & the value to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new string allocated with elektra\+Malloc, or 0 on error 
\end{DoxyReturn}
