\hypertarget{ease_2keyname_8c}{}\section{keyname.\+c File Reference}
\label{ease_2keyname_8c}\index{keyname.\+c@{keyname.\+c}}


Methods for accessing key names.  


{\ttfamily \#include $<$kdb.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
Include dependency graph for ease/keyname.c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=190pt]{ease_2keyname_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
const char $\ast$ \hyperlink{ease_2keyname_8c_a7a8eff2d0ef19a64a9beeedfcfe1df22}{elektra\+Key\+Get\+Relative\+Name} (Key const $\ast$cur, Key const $\ast$parent\+Key)
\begin{DoxyCompactList}\small\item\em get relative position of key based on parent\+Key \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Methods for accessing key names. 

\begin{DoxyCopyright}{Copyright}
B\+SD License (see L\+I\+C\+E\+N\+S\+E.\+md or \href{https://www.libelektra.org}{\tt https\+://www.\+libelektra.\+org}) 
\end{DoxyCopyright}


\subsection{Function Documentation}
\mbox{\Hypertarget{ease_2keyname_8c_a7a8eff2d0ef19a64a9beeedfcfe1df22}\label{ease_2keyname_8c_a7a8eff2d0ef19a64a9beeedfcfe1df22}} 
\index{ease/keyname.\+c@{ease/keyname.\+c}!elektra\+Key\+Get\+Relative\+Name@{elektra\+Key\+Get\+Relative\+Name}}
\index{elektra\+Key\+Get\+Relative\+Name@{elektra\+Key\+Get\+Relative\+Name}!ease/keyname.\+c@{ease/keyname.\+c}}
\subsubsection{\texorpdfstring{elektra\+Key\+Get\+Relative\+Name()}{elektraKeyGetRelativeName()}}
{\footnotesize\ttfamily const char$\ast$ elektra\+Key\+Get\+Relative\+Name (\begin{DoxyParamCaption}\item[{Key const $\ast$}]{cur,  }\item[{Key const $\ast$}]{parent\+Key }\end{DoxyParamCaption})}



get relative position of key based on parent\+Key 

\begin{DoxyPrecond}{Precondition}
parent\+Key is either the same key as cur, or one of its parents 
\end{DoxyPrecond}
\begin{DoxyPostcond}{Postcondition}
a pointer to the relevant part of the parent key\textquotesingle{}s name, the full name if there is no relation to the parent\+Key
\end{DoxyPostcond}
If the parent\+Key does not fulfill the precondition, the result won\textquotesingle{}t be the correct relative key of cur.


\begin{DoxyParams}{Parameters}
{\em cur} & the key below parent\+Key we want to get the relative basename of \\
\hline
{\em parent\+Key} & the key that defines the root/base\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a pointer to the relative part name of the key cur 
\end{DoxyReturn}
