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

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

Go to the source code of this file.

Functions

cirbuf_int cirbuf_del_tail_safe (struct cirbuf *cbuf)
void cirbuf_del_tail (struct cirbuf *cbuf)


Function Documentation

void cirbuf_del_tail ( struct cirbuf cbuf  ) 

Remove a char at the tail of the circular buffer. You _must_ check that buffer is not empty before calling the function.

Definition at line 51 of file cirbuf_del_tail.c.

Referenced by rdline_char_in(), uart_recv_nowait(), and uart_send_next_char().

cirbuf_int cirbuf_del_tail_safe ( struct cirbuf cbuf  ) 

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

Definition at line 41 of file cirbuf_del_tail.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