BUF_PUTC(3) - Library Functions Manual
buf_putc - append a single character
buf_putc(struct buf *b, char c);
Append the c character into the buffer specified by b.
This function should be avoided for performance reasons unless you reserve more storage using buf_reserve() prior to calling this function. See buf_reserve(3) for more details.
The buf_putc() function returns -1 in case of error and errno is set to indicate the error.
Couldn’t allocate more memory.
The libbuf library was written by David Demelier <firstname.lastname@example.org>
macOS 12.5 - October 29, 2019-2022