buffer_puterror2 man page

buffer_puterror2 — write error string to buffer and flush


#include <buffer.h>

int buffer_puterror2(buffer* b,int errnum);


buffer_puterror2 writes the error message corresponding to the error number in errnum to the buffer (e.g. "No such file or directory" for ENOENT).

Return Value

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

See Also

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

Referenced By


Explore man page connections for buffer_puterror2(3).