buffer_puterror - Man Page

write error string to buffer and flush

Syntax

#include <buffer.h>

int buffer_puterror(buffer* b);

Description

buffer_puterror is equivalent to calling buffer_puterror2 with errno.

Return Value

0 if everything is fine, -1 on error (setting errno).

See Also

buffer_puterror2(3), buffer_puts(3), buffer_put(3), buffer_flush(3), buffer(3)

Referenced By

buffer_puterror2(3).