1DC_BUFFER_PREPEND(3)     BSD Library Functions Manual     DC_BUFFER_PREPEND(3)
2

NAME

4     dc_buffer_prepend — prepend to a binary buffer
5

LIBRARY

7     library “libdivecomputer”
8

SYNOPSIS

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

DESCRIPTION

17     Prepend size bytes of data to the beginning of buffer previously allo‐
18     cated with dc_buffer_new(3).
19

RETURN VALUES

21     Returns non-zero on success or zero on memory exhaustion or if buffer is
22     NULL.
23

SEE ALSO

25     dc_buffer_new(3)
26

AUTHORS

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
Impressum