lowdown_buf_new - Man Page

allocate a dynamic buffer

Library

library “liblowdown”

Synopsis

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

struct lowdown_buf *
lowdown_buf_new(size_t growsz);

Description

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

Return Values

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

See Also

lowdown(3)

Referenced By

lowdown_buf_free(3).

December 7, 2024