---
name: "firestring_estr_chug"
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_chug"
---

# firestring\_estr\_chug(3)

remove whitespace from the beginning of an estring

## NAME

firestring\_estr\_chug - remove whitespace from the beginning of an estring

## SYNOPSIS

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

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

## DESCRIPTION

firestring\_estr\_chug shortens *string* by moving the start forward until the string begins with a non-whitespace character or is empty.

## 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\_chug*(3)](/firestring_estr_ip_chug/3.md) instead.

## RETURN VALUE

None.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

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