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

NAME

4     dc_buffer_new — create an resizable binary buffer
5

LIBRARY

7     library “libdivecomputer”
8

SYNOPSIS

10     #include <libdivecomputer/buffer.h>
11
12     dc_buffer_t *
13     dc_buffer_new(size_t capacity);
14

DESCRIPTION

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

RETURN VALUES

20     Returns a pointer to a dc_buffer_t or NULL on memory exhaustion.
21

SEE ALSO

23     dc_buffer_free(3)
24

AUTHORS

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
Impressum