strrtrim
Remove trailing white space from a C style null terminated string.
char *strrtrim( char *szText );
Return value
The return value is a pointer to the start of the string. The same pointer passed into the function.
Example
char szBuf[] = "test ";
strrtrim( szBuf );
// szBuf now contains the text "test"
See also strltrim