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 Β© 2001-2026 Joe Orton


xoxo from neon (the source/version), dated 03/20/2026 β€” NE_BUFFER_CREATE(3) out πŸ’…

πŸ“¦ where this page comes from