BUF_PRINTF(3) - Library Functions Manual

NAME

buf_printf - write a to a buffer using printf(3) like format

SYNOPSIS

#include <buf.h>

bool
buf_printf(struct buf *b, const char *fmt, );

DESCRIPTION

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.

RETURN VALUE

The buf_printf() function returns false in case of error and errno is set to indicate the error.

ERRORS

[ENOMEM]

Couldn’t allocate more memory.

SEE ALSO

libbuf(3), buf_vprintf(3), printf(3)

AUTHORS

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

macOS 11.2 - October 29, 2019-2020