#include <string.h>
#include <cirbuf.h>
Go to the source code of this file.
Functions | |
cirbuf_int | cirbuf_del_head_safe (struct cirbuf *cbuf) |
void | cirbuf_del_head (struct cirbuf *cbuf) |
void cirbuf_del_head | ( | struct cirbuf * | cbuf | ) |
Remove a char at the head of the circular buffer. You _must_ check that buffer is not empty before calling the function.
Definition at line 50 of file cirbuf_del_head.c.
Referenced by rdline_char_in().
cirbuf_int cirbuf_del_head_safe | ( | struct cirbuf * | cbuf | ) |
Remove a char at the head of the circular buffer. Return 0 on success, or a negative value on error.
Definition at line 40 of file cirbuf_del_head.c.
References CIRBUF_IS_EMPTY, and EINVAL.
Referenced by rdline_char_in().