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

NAME

4     dc_buffer_get_data — get the data of a buffer
5

LIBRARY

7     library “libdivecomputer”
8

SYNOPSIS

10     #include <libdivecomputer/buffer.h>
11
12     unsigned char *
13     dc_buffer_get_data(dc_buffer_t *buffer);
14

DESCRIPTION

16     Get the data used by buffer, previously allocated with dc_buffer_new(3).
17     For the buffer size, use dc_buffer_get_size(3).
18
19     The returned pointer is not valid after subsequent calls to change the
20     buffer.
21

RETURN VALUES

23     Returns the data or NULL if buffer is NULL or no data has been allocated
24     to the buffer.
25

SEE ALSO

27     dc_buffer_get_size(3), dc_buffer_new(3)
28

AUTHORS

30     The library “libdivecomputer” library was written by Jef Driesen,
31     jef@libdivecomputer.org.  The manpages were written by
32     Kristaps Dzonsons, kristaps@bsd.lv.
33
34BSD                             January 5, 2017                            BSD
Impressum