firestring_estr_trim(3)

firestring_estr_trim3

Remove whitespace from the beginning and end of an estring

Usage

#include <firestring.h>
-lfirestring

void firestring_estr_trim(struct firestring_estr_t *string)

Overview

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), (as opposed to constructed manually pointing inside other memory), future calls to firestring_estr_free(3) will fail if this function trimmed any space from the start of the string. In these cases, use firestring_estr_ip_trim(3) instead.

Return value

None.

Releases

Unchanged in 6 releases since Debian 3.1 (Sarge).

  1. 3.1–8

Author

Ian Gulliver <[email protected]>

From libfirestring-dev 0.9.12-8 in Debian 8 (Jessie). Parsed by carta from the page's man source.