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

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

Go to the source code of this file.

Functions

void cirbuf_align_left (struct cirbuf *cbuf)
void cirbuf_align_right (struct cirbuf *cbuf)


Function Documentation

void cirbuf_align_left ( struct cirbuf cbuf  ) 

Set the start of the data to the index 0 of the internal buffer.

Definition at line 62 of file cirbuf_align.c.

References cirbuf::maxlen, and cirbuf::start.

Referenced by rdline_char_in(), and rdline_get_buffer().

void cirbuf_align_right ( struct cirbuf cbuf  ) 

Set the end of the data to the last index of the internal buffer.

Definition at line 77 of file cirbuf_align.c.

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


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