LOWDOWN_BUF_NEW(3) Library Functions Manual LOWDOWN_BUF_NEW(3)

lowdown_buf_newallocate a dynamic buffer

library “liblowdown”

#include <sys/queue.h>
#include <stdio.h>
#include <lowdown.h>

struct lowdown_buf *
lowdown_buf_new(size_t growsz);

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

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

lowdown(3)

January 19, 2021 OpenBSD 6.7