---
name: "firestring_estr_alloc"
section: "3"
platform: "linux"
package: "libfirestring-dev"
version: "0.9.12-8"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/firestring_estr_alloc"
---

# firestring\_estr\_alloc(3)

allocate space for an estring

## NAME

firestring\_estr\_alloc - allocate space for an estring

## SYNOPSIS

**#include \<firestring.h\>**\
 **-lfirestring**

**void firestring\_estr\_alloc(struct firestring\_estr\_t \****estring***, int** *size***)**

## DESCRIPTION

firestring\_estr\_alloc() uses [**firestring\_malloc**(3)](/firestring_malloc/3.md) to allocate  *size* bytes in *estring*. It resets the length of *estring* to 0 and stores the size with the string to facilitate safe operations later.

## RETURN VALUE

None.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

[**libfirestring**(3)](/libfirestring/3.md)
