SysTutorials

Linux Manual Pages › Section 9

strim(9)

strim – Removes leading and trailing whitespace from s.

Synopsis

char *strim(char *s);

Arguments

s

The string to be stripped.

Description

Note that the first trailing whitespace is replaced with a NUL-terminator in the given string s. Returns a pointer to the first non-whitespace character in s.

Copyright