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

# firestring\_chomp(3)

trim excess whitespace from the end of a string

## NAME

firestring\_chomp - trim excess whitespace from the end of a string

## SYNOPSIS

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

**char \*firestring\_chomp(char \****s***)**

## DESCRIPTION

firestring\_chomp() removes any whitespace at the end of the string *s.* The string is modified in place and returned as well.

## RETURN VALUE

*s* after having been modified.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

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