1DC_BUFFER_PREPEND(3) BSD Library Functions Manual DC_BUFFER_PREPEND(3)
2
4 dc_buffer_prepend — prepend to a binary buffer
5
7 library “libdivecomputer”
8
10 #include <libdivecomputer/buffer.h>
11
12 int
13 dc_buffer_prepend(dc_buffer_t *buffer, const unsigned char data[],
14 size_t size);
15
17 Prepend size bytes of data to the beginning of buffer previously allo‐
18 cated with 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