Next: , Previous: str_tokbqcnt, Up: Strings   [Contents]


4.18 str_trim

removes white space from front of a string

Synopsis

#include <suplib/str.h>

char *str_trim(char *str);

Parameters

char *str

the string to trim

Description

str_strim removes white space from the front of a string by shifting the string to the left, starting at the first non-white space character. It works in place, altering the passed string.

Returns

It returns the pointer which it was passed

Author

Diab Jerius