NE_BUFFER_CREATE(3)
π NE_BUFFER_CREATE(3) π
okay bestie, this is the neon API reference page for creating string buffers. itβs giving βtiny but essential,β and weβre gonna get you through it. π«Άβ¨
πΈ NAME πΈ
ne_buffer_create, ne_buffer_ncreate β create a string buffer
π¦ SYNOPSIS π¦
#include <ne_alloc.h>
ne_buffer *ne_buffer_create(void);
ne_buffer *ne_buffer_ncreate(size_t size);
π DESCRIPTION π
so ne_buffer_create creates a new buffer object, with an implementation-defined initial size. yes, the implementation is the main character here and picks the starting size. slay. π
ne_buffer_ncreate creates an ne_buffer where the minimum initial size is given in the size parameter. The buffer created will contain the empty string (""). literally starting from nothing, iconic. πΈ
π₯ RETURN VALUE π₯
Both functions return a pointer to a new buffer object, and never NULL. not me being obsessed with a non-NULL guarantee ππ«Ά
β SEE ALSO β
π COPYRIGHT π
Copyright Β© 2001-2026 Joe Orton
xoxo from neon (the source/version), dated 03/20/2026 β NE_BUFFER_CREATE(3) out π
π¦ where this page comes from
- arch rolling: neon 0.37.1-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms