1
0
forked from GitHub/gf-core

added gu_buf_flush in seq.c which removes all elements from a buffer

This commit is contained in:
kr.angelov
2013-02-26 09:48:09 +00:00
parent 348c118fc9
commit f001d40ae3
2 changed files with 9 additions and 0 deletions

View File

@@ -121,6 +121,9 @@ gu_buf_trim_n(GuBuf* buf, size_t n_elems);
const void*
gu_buf_trim(GuBuf* buf);
void
gu_buf_flush(GuBuf* buf);
#define gu_buf_pop(BUF, T) \
(*(T*)gu_buf_trim(BUF))