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


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


Remove chars at the tail 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\_\-tail.c.

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

Referenced by uart\_\-9bits\_\-recv\_\-nowait(), and uart\_\-send\_\-next\_\-char().