#include <string.h>#include <cirbuf.h>Go to the source code of this file.
Functions | |
| cirbuf_int | cirbuf_get_buf_tail (struct cirbuf *cbuf, char *c, cirbuf_uint size) |
| cirbuf_int cirbuf_get_buf_tail | ( | struct cirbuf * | cbuf, | |
| char * | c, | |||
| cirbuf_uint | size | |||
| ) |
Copy a maximum of 'size' characters from the tail of the circular buffer to a flat one pointed by 'c'. Return the number of copied chars.
Definition at line 31 of file cirbuf_get_buf_tail.c.
References cirbuf::buf, CIRBUF_GET_LEN, dprintf, cirbuf::end, cirbuf::maxlen, and cirbuf::start.
Referenced by uart_9bits_recv_nowait(), and uart_send_next_char().
1.5.6