1buffer_puterror2(3) Library Functions Manual buffer_puterror2(3)
2
3
4
6 buffer_puterror2 - write error string to buffer and flush
7
9 #include <buffer.h>
10
11 int buffer_puterror2(buffer* b,int errnum);
12
14 buffer_puterror2 writes the error message corresponding to the error
15 number in errnum to the buffer (e.g. "No such file or directory" for
16 ENOENT).
17
19 0 if everything is fine, -1 on error (setting errno).
20
22 buffer_puterror(3), buffer_puts(3), buffer_put(3), buffer_flush(3),
23 buffer(3)
24
25
26
27 buffer_puterror2(3)