---
name: "lowdown_buf_new"
section: "3"
platform: "linux"
package: "lowdown"
version: "3.2.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/lowdown_buf_new"
---

# lowdown\_buf\_new(3)

allocate a dynamic buffer

## NAME

**lowdown\_buf\_new** – 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)](/lowdown_buf_free/3.md).

## SEE ALSO

[lowdown(3)](/lowdown/3.md)
