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


\subsection{Function Documentation}
\index{cirbuf\_\-del\_\-buf\_\-head.c@{cirbuf\_\-del\_\-buf\_\-head.c}!cirbuf\_\-del\_\-buf\_\-head@{cirbuf\_\-del\_\-buf\_\-head}}
\index{cirbuf\_\-del\_\-buf\_\-head@{cirbuf\_\-del\_\-buf\_\-head}!cirbuf_del_buf_head.c@{cirbuf\_\-del\_\-buf\_\-head.c}}
\subsubsection[cirbuf\_\-del\_\-buf\_\-head]{\setlength{\rightskip}{0pt plus 5cm}{\bf cirbuf\_\-int} cirbuf\_\-del\_\-buf\_\-head (struct {\bf cirbuf} $\ast$ {\em cbuf}, \/  {\bf cirbuf\_\-uint} {\em size})}\label{cirbuf__del__buf__head_8c_115d24603e140274d48ec302dcdb4b31}


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

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

References CIRBUF\_\-GET\_\-LEN, CIRBUF\_\-IS\_\-EMPTY, EINVAL, cirbuf::len, cirbuf::maxlen, and cirbuf::start.

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