LOWDOWN_BUF_NEW(3)

πŸ“¦
version 3.2.1 Β· 2 versions
, in alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 πŸ‘‘

lowdown(3)


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! 🌈✨