\section{aversive\_\-10-03-12/modules/base/cirbuf/cirbuf\_\-get\_\-head.c File Reference}
\label{cirbuf__get__head_8c}\index{aversive\_\-10-03-12/modules/base/cirbuf/cirbuf\_\-get\_\-head.c@{aversive\_\-10-03-12/modules/base/cirbuf/cirbuf\_\-get\_\-head.c}}
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$cirbuf.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
char {\bf cirbuf\_\-get\_\-head} (struct {\bf cirbuf} $\ast$cbuf)
\end{CompactItemize}


\subsection{Function Documentation}
\index{cirbuf\_\-get\_\-head.c@{cirbuf\_\-get\_\-head.c}!cirbuf\_\-get\_\-head@{cirbuf\_\-get\_\-head}}
\index{cirbuf\_\-get\_\-head@{cirbuf\_\-get\_\-head}!cirbuf_get_head.c@{cirbuf\_\-get\_\-head.c}}
\subsubsection[cirbuf\_\-get\_\-head]{\setlength{\rightskip}{0pt plus 5cm}char cirbuf\_\-get\_\-head (struct {\bf cirbuf} $\ast$ {\em cbuf})}\label{cirbuf__get__head_8c_c90f782baf16b4928657a370df1b758b}


Return the head of the circular buffer. You \_\-must\_\- check that buffer is not empty before calling the function. 

Definition at line 30 of file cirbuf\_\-get\_\-head.c.

References cirbuf::buf, and cirbuf::start.

Referenced by rdline\_\-char\_\-in().