1DC_BUFFER_NEW(3) BSD Library Functions Manual DC_BUFFER_NEW(3)
2
4 dc_buffer_new — create an resizable binary buffer
5
7 library “libdivecomputer”
8
10 #include <libdivecomputer/buffer.h>
11
12 dc_buffer_t *
13 dc_buffer_new(size_t capacity);
14
16 Create a resizable binary buffer of initial size capacity, which may be
17 zero. The created buffer must be freed with dc_buffer_free(3).
18
20 Returns a pointer to a dc_buffer_t or NULL on memory exhaustion.
21
23 dc_buffer_free(3)
24
26 The library “libdivecomputer” library was written by Jef Driesen,
27 jef@libdivecomputer.org. The manpages were written by
28 Kristaps Dzonsons, kristaps@bsd.lv.
29
30BSD January 5, 2017 BSD