TrimString Function

Removes whitespace characters from the beginning and end of a string.

int TrimString(char[] str)

Parameters

char[] str

The string to trim.

Return Value

Number of bytes written (UTF-8 safe).