BUF_PRINTF(3) - Library Functions Manual
buf_printf - write a to a buffer using printf(3) like format
#include <buf.h>
int
buf_printf(struct buf *b, const char
*fmt, …);
This function uses the printf(3) format to be appended in the buffer b. See the printf(3) manual page for a detailed description of fmt string.
The buf_printf() function returns -1 in case of error and errno is set to indicate the error.
[ENOMEM
]
Couldn’t allocate more memory.
libbuf(3), buf_vprintf(3), printf(3)
The libbuf library was written by David Demelier <markand@malikania.fr>
macOS 13.5 - October 29, 2019-2022