1DC_BUFFER_APPEND(3) BSD Library Functions Manual DC_BUFFER_APPEND(3)
2
4 dc_buffer_append — append to a binary buffer
5
7 library “libdivecomputer”
8
10 #include <libdivecomputer/buffer.h>
11
12 int
13 dc_buffer_append(dc_buffer_t *buffer, const unsigned char data[],
14 size_t size);
15
17 Append size bytes of data into the buffer previously allocated with
18 dc_buffer_new(3).
19
21 Returns non-zero on success or zero on memory exhaustion or if buffer is
22 NULL.
23
25 dc_buffer_new(3)
26
28 The library “libdivecomputer” library was written by Jef Driesen,
29 jef@libdivecomputer.org. The manpages were written by
30 Kristaps Dzonsons, kristaps@bsd.lv.
31
32BSD January 5, 2017 BSD