BUF_PUTC(3) - Library Functions Manual
buf_putc - append a single character
#include <buf.h>
int
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.
[ENOMEM
]
Couldn’t allocate more memory.
libbuf(3), buf_reserve(3)
The libbuf library was written by David Demelier <markand@malikania.fr>
macOS 13.5 - October 29, 2019-2022