BUF_FINISH(3) - Library Functions Manual

NAME

buf_finish - clear the buffer and free resources

SYNOPSIS

#include <buf.h>

void
buf_finish(struct buf *b);

DESCRIPTION

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.

SEE ALSO

libbuf(3), buf_clear

AUTHORS

The libbuf library was written by David Demelier <markand@malikania.fr>

macOS 13.5 - October 29, 2019-2022