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

NAME

4     lowdown_buf_new — allocate a dynamic buffer
5

LIBRARY

7     library “liblowdown”
8

SYNOPSIS

10     #include <sys/queue.h>
11     #include <stdio.h>
12     #include <lowdown.h>
13
14     struct lowdown_buf *
15     lowdown_buf_new(size_t growsz);
16

DESCRIPTION

18     Allocates a dynamic buffer that grows in increments of size growsz, which
19     may not be zero.
20

RETURN VALUES

22     Returns a pointer to a buffer or NULL on memory failure.  The pointer
23     must be freed with lowdown_buf_free(3).
24

SEE ALSO

26     lowdown(3)
27
28BSD                            December 17, 2023                           BSD
Impressum