Removes trailing whitespace from a string.
This function doesn’t allocate or reallocate any memory;
string in place. Therefore, it cannot be used
on statically allocated strings.
The pointer to
string is returned to allow the nesting of functions.
A string to remove the trailing whitespace from.
|The data is owned by the caller of the function.|
|The string is a NUL terminated UTF-8 string.|