\hypertarget{proposal_8c}{}\section{proposal.\+c File Reference}
\label{proposal_8c}\index{proposal.\+c@{proposal.\+c}}


Implementation of proposed A\+PI enhancements.  


{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$kdbprivate.\+h$>$}\newline
Include dependency graph for proposal.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{proposal_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Key $\ast$ \hyperlink{proposal_8c_a0edeebda49ef1ad7c054411a36a9bf38}{elektra\+Ks\+Pop\+At\+Cursor} (Key\+Set $\ast$ks, elektra\+Cursor pos)
\begin{DoxyCompactList}\small\item\em Pop key at given cursor position. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implementation of proposed A\+PI enhancements. 

\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{proposal_8c_a0edeebda49ef1ad7c054411a36a9bf38}\label{proposal_8c_a0edeebda49ef1ad7c054411a36a9bf38}} 
\index{proposal.\+c@{proposal.\+c}!elektra\+Ks\+Pop\+At\+Cursor@{elektra\+Ks\+Pop\+At\+Cursor}}
\index{elektra\+Ks\+Pop\+At\+Cursor@{elektra\+Ks\+Pop\+At\+Cursor}!proposal.\+c@{proposal.\+c}}
\subsubsection{\texorpdfstring{elektra\+Ks\+Pop\+At\+Cursor()}{elektraKsPopAtCursor()}}
{\footnotesize\ttfamily Key$\ast$ elektra\+Ks\+Pop\+At\+Cursor (\begin{DoxyParamCaption}\item[{Key\+Set $\ast$}]{ks,  }\item[{elektra\+Cursor}]{pos }\end{DoxyParamCaption})}



Pop key at given cursor position. 


\begin{DoxyParams}{Parameters}
{\em ks} & the keyset to pop key from \\
\hline
{\em c} & where to pop\\
\hline
\end{DoxyParams}
The internal cursor will be rewinded using \hyperlink{group__keyset_gabe793ff51f1728e3429c84a8a9086b70}{ks\+Rewind()}. You can use \hyperlink{group__keyset_gace0444eb8ec958a429794f8586fc72e7}{ks\+Get\+Cursor()} and \hyperlink{group__keyset_ga28b2a7d13c620b3c9d4815a0608c738f}{ks\+Set\+Cursor()} jump back to the previous position. e.\+g. to pop at current position within \hyperlink{group__keyset_ga317321c9065b5a4b3e33fe1c399bcec9}{ks\+Next()} loop\+: 
\begin{DoxyCode}
cursor\_t c = \hyperlink{group__keyset_gace0444eb8ec958a429794f8586fc72e7}{ksGetCursor}(ks);
\hyperlink{group__key_ga3df95bbc2494e3e6703ece5639be5bb1}{keyDel} (\hyperlink{proposal_8c_a0edeebda49ef1ad7c054411a36a9bf38}{elektraKsPopAtCursor}(ks, c));
\hyperlink{group__keyset_ga28b2a7d13c620b3c9d4815a0608c738f}{ksSetCursor}(ks, c);
ksPrev(ks); \textcolor{comment}{// to have correct key after next ksNext()}
\end{DoxyCode}


\begin{DoxyWarning}{Warning}
do not use, will be superseded by external iterator A\+PI
\end{DoxyWarning}
\begin{DoxyReturn}{Returns}
the popped key 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
{\em 0} & if ks is 0 \\
\hline
\end{DoxyRetVals}
