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


\subsection{Function Documentation}
\index{cirbuf.c@{cirbuf.c}!cirbuf\_\-init@{cirbuf\_\-init}}
\index{cirbuf\_\-init@{cirbuf\_\-init}!cirbuf.c@{cirbuf.c}}
\subsubsection[cirbuf\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void cirbuf\_\-init (struct {\bf cirbuf} $\ast$ {\em cbuf}, \/  char $\ast$ {\em buf}, \/  {\bf cirbuf\_\-uint} {\em start}, \/  {\bf cirbuf\_\-uint} {\em maxlen})}\label{cirbuf_8c_41768b866c9d086baa9c06d52110eea8}


Init the circular buffer 

Definition at line 29 of file cirbuf.c.

References cirbuf::buf, cirbuf::end, cirbuf::len, cirbuf::maxlen, and cirbuf::start.

Referenced by rdline\_\-char\_\-in(), rdline\_\-init(), rdline\_\-newline(), and uart\_\-setconf().