---
name: "firestring_estr_trim"
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_trim"
---

# firestring\_estr\_trim(3)

remove whitespace from the beginning and end of an estring

## NAME

firestring\_estr\_trim - remove whitespace from the beginning and end of an estring

## SYNOPSIS

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

**void firestring\_estr\_trim(struct firestring\_estr\_t \****string***)**

## DESCRIPTION

firestring\_estr\_trim removes whitespace from the beginning and end of *string*.

## CAVEATS

This function moves the starting pointer inside *string*. If *string* was allocated with [*firestring\_estr\_alloc*(3)](/firestring_estr_alloc/3.md), (as opposed to constructed manually pointing inside other memory), future calls to [*firestring\_estr\_free*(3)](/firestring_estr_free/3.md) will fail if this function trimmed any space from the start of the string.  In these cases, use [*firestring\_estr\_ip\_trim*(3)](/firestring_estr_ip_trim/3.md) instead.

## RETURN VALUE

None.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

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