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

# ne\_buffer\_create(3)

create a string buffer

## 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

**ne\_buffer\_create** creates a new buffer object, with an implementation-defined initial size. **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 ("").

## RETURN VALUE

Both functions return a pointer to a new buffer object, and never NULL.

## SEE ALSO

[**ne\_buffer**(3)](/ne_buffer/3.md)

## COPYRIGHT

Copyright © 2001-2026 Joe Orton\
