#include <string.h>#include <cirbuf.h>Go to the source code of this file.
Functions | |
| cirbuf_int | cirbuf_add_buf_tail (struct cirbuf *cbuf, const char *c, cirbuf_uint n) |
| cirbuf_int cirbuf_add_buf_tail | ( | struct cirbuf * | cbuf, | |
| const char * | c, | |||
| cirbuf_uint | n | |||
| ) |
Add a buffer at tail of the circular buffer. 'c' is a pointer to a buffer, and n is the number of char to add. Return the number of copied bytes on success, or a negative value on error.
Definition at line 31 of file cirbuf_add_buf_tail.c.
References cirbuf::buf, CIRBUF_GET_FREELEN, CIRBUF_IS_EMPTY, dprintf, EINVAL, cirbuf::end, cirbuf::len, and cirbuf::maxlen.
Referenced by rdline_char_in().
1.5.6