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

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

Go to the source code of this file.

Functions

cirbuf_int cirbuf_get_buf_head (struct cirbuf *cbuf, char *c, cirbuf_uint size)


Function Documentation

cirbuf_int cirbuf_get_buf_head ( struct cirbuf cbuf,
char *  c,
cirbuf_uint  size 
)

Copy a maximum of 'size' characters from the head of the circular buffer to a flat one pointed by 'c'. Return the number of copied chars.

Definition at line 30 of file cirbuf_get_buf_head.c.

References cirbuf::buf, CIRBUF_GET_LEN, dprintf, cirbuf::end, cirbuf::maxlen, and cirbuf::start.

Referenced by rdline_char_in().


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