---
name: "stralloc_init"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/stralloc_init"
---

# stralloc\_init(3)

initialize a stralloc

## NAME

stralloc\_init - initialize a stralloc

## SYNTAX

**#include \<libowfat/stralloc.h\>**

void **stralloc\_init**(stralloc\* *sa*);

## DESCRIPTION

stralloc\_init initializes a stralloc to the empty string.

It does not free any memory previously associated with a stralloc.  Use [stralloc\_free(3)](/stralloc_free/3.md) for that.  If you just want to empty a stralloc, use stralloc\_zero(sa) instead.

## RETURN VALUE

none.

## SEE ALSO

[stralloc\_free(3)](/stralloc_free/3.md), [stralloc\_copys(3)](/stralloc_copys/3.md)
