1buffer_put(3)              Library Functions Manual              buffer_put(3)
2
3
4

NAME

6       buffer_put - write binary data to buffer
7

SYNTAX

9       #include <buffer.h>
10
11       int buffer_put(buffer* b,const char* x,size_t len);
12

DESCRIPTION

14       buffer_put writes len bytes from x to b.
15
16       The  difference  to  buffer_putalign  is  that, when there isn't enough
17       space for new data, buffer_put calls buffer_flush  before  copying  any
18       data,  while buffer_putalign fills all available space with data before
19       calling buffer_flush.
20

RETURN VALUE

22       buffer_put returns 0 if everything  was  fine,  -1  on  error  (setting
23       errno).
24

SEE ALSO

26       buffer_putalign(3), buffer_puts(3), buffer_flush(3), buffer(3)
27
28
29
30                                                                 buffer_put(3)
Impressum