---
name: "firestring_estr_areplace"
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_areplace"
---

# firestring\_estr\_areplace(3)

Replace occurences of one string with another, allocating space if needed

## NAME

firestring\_estr\_replace - Replace occurences of one string with another, allocating space if needed

## SYNOPSIS

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

**int firestring\_estr\_replace(struct firestring\_estr\_t \* const** *dest***, const struct firestring\_estr\_t \* const** *source***, const struct firestring\_estr\_t \* const** *to***, const struct firestring\_estr\_t \* const** *from***)**

## DESCRIPTION

firestring\_estr\_replace() copies *source* into *dest*, replacing all instances from *from* with *to*. It allocates more space in *dest* if needed.

## RETURN VALUE

0

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

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