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


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


Remove a char at the head of the circular buffer. You \_\-must\_\- check that buffer is not empty before calling the function. 

Definition at line 50 of file cirbuf\_\-del\_\-head.c.

Referenced by rdline\_\-char\_\-in().\index{cirbuf\_\-del\_\-head.c@{cirbuf\_\-del\_\-head.c}!cirbuf\_\-del\_\-head\_\-safe@{cirbuf\_\-del\_\-head\_\-safe}}
\index{cirbuf\_\-del\_\-head\_\-safe@{cirbuf\_\-del\_\-head\_\-safe}!cirbuf_del_head.c@{cirbuf\_\-del\_\-head.c}}
\subsubsection[cirbuf\_\-del\_\-head\_\-safe]{\setlength{\rightskip}{0pt plus 5cm}{\bf cirbuf\_\-int} cirbuf\_\-del\_\-head\_\-safe (struct {\bf cirbuf} $\ast$ {\em cbuf})}\label{cirbuf__del__head_8c_217f725ee86b3cb61b2ddf352e8f5661}


Remove a char at the head of the circular buffer. Return 0 on success, or a negative value on \doxyref{error}{p.}{structerror}. 

Definition at line 40 of file cirbuf\_\-del\_\-head.c.

References CIRBUF\_\-IS\_\-EMPTY, and EINVAL.

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