BUF_PUTS(3) - Library Functions Manual

NAME

buf_puts - append a NUL-terminated string

SYNOPSIS

#include <buf.h>

bool
buf_puts(struct buf *b, const char *src);

DESCRIPTION

Append the NUL-terminated string src into the buffer specified by b.

It is undefined behavior if src argument is NULL.

RETURN VALUE

The buf_puts() 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)

AUTHORS

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

macOS 11.2 - October 29, 2019-2020