LOWDOWN_BUF_NEW(3)
β¨ LOWDOWN_BUF_NEW(3) β¨
okay bestie, welcome to the Library Functions Manual π this one's lowdown_buf_new from the one and only liblowdown and it's literally so simple you're gonna slay it
πΈ 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 π
So like, this function allocates a dynamic buffer that grows in increments of size growsz, okay? and the way that growsz may not be zero β that's the vibe check right there, it literally can't be zero, so don't even try it π
β RETURN VALUES β
It returns a pointer to a buffer, or NULL on memory failure π (yeah, tragic, but it happens).
bestie, listen: that pointer must be freed with lowdown_buf_free(3) β no leaving it hanging, that's not the move π«Ά
π SEE ALSO π
and that's the whole page fr fr, go forth and allocate responsibly π
this was LOWDOWN_BUF_NEW(3) from Debian, version $Mdocdate$ π mwah, stan liblowdown, bye bestie! πβ¨
π¦ where this page comes from
- alpine 3.24: lowdown-doc 3.0.1-r0 Β· ISC
- arch rolling: lowdown 3.2.1-1 Β· ISC
- debian trixie: liblowdown-dev 2.0.2-2 Β· ISC
- fedora 43: lowdown-libs 2.0.2-2.fc43 Β· ISC AND BSD-3-Clause AND MIT
- fedora 43: lowdown-libs 2.0.2-2.fc43 Β· ISC AND BSD-3-Clause AND MIT
- fedora 44: lowdown-libs 2.0.2-3.fc44 Β· ISC AND BSD-3-Clause AND MIT
- fedora 44: lowdown-libs 2.0.2-3.fc44 Β· ISC AND BSD-3-Clause AND MIT
- nixpkgs unstable: lowdown 3.0.1
- nixpkgs unstable: lowdown-unsandboxed 3.0.1
- opensuse-leap 16.0: lowdown-devel 1.1.0+git20231119.1200b9f-bp160.1.13 Β· ISC
- opensuse-leap 16.0: lowdown-devel 1.1.0+git20231119.1200b9f-bp160.1.13 Β· ISC
- opensuse-leap 16.0: lowdown-devel 1.1.0+git20231119.1200b9f-bp160.1.13 Β· ISC
- opensuse-leap 16.0: lowdown-devel 1.1.0+git20231119.1200b9f-bp160.1.13 Β· ISC
- ubuntu noble: liblowdown-dev 1.1.0-1 Β· ISC
- ubuntu questing: liblowdown-dev 2.0.2-2
- ubuntu resolute: liblowdown-dev 2.0.4-2 Β· ISC
- ubuntu stonking: liblowdown-dev 3.0.1-1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms