BUF_FINISH(3) - Library Functions Manual
buf_finish - clear the buffer and free resources
#include <buf.h>
void
buf_finish(struct buf *b);
Free the internal resources and reset the buffer state specified by b.
The buffer may be freely reused after calling the buf_finish() function, it is also safe to call the function on a finalized buffer as well.
libbuf(3), buf_clear
The libbuf library was written by David Demelier <markand@malikania.fr>
macOS 13.5 - October 29, 2019-2022