aversive_10-03-12/modules/base/cirbuf/cirbuf_del_head.c File Reference

#include <string.h>
#include <cirbuf.h>

Go to the source code of this file.

Functions

cirbuf_int cirbuf_del_head_safe (struct cirbuf *cbuf)
void cirbuf_del_head (struct cirbuf *cbuf)


Function Documentation

void cirbuf_del_head ( struct cirbuf cbuf  ) 

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().

cirbuf_int cirbuf_del_head_safe ( struct cirbuf cbuf  ) 

Remove a char at the head of the circular buffer. Return 0 on success, or a negative value on error.

Definition at line 40 of file cirbuf_del_head.c.

References CIRBUF_IS_EMPTY, and EINVAL.

Referenced by rdline_char_in().


Generated on Fri Mar 12 06:32:05 2010 for AVR by  doxygen 1.5.6