rtrim -- Strips whitespace(s) from the end of a string.
Strips whitespace (or other characters) from the end of a string.
// 1-a. Function form.
void func::rtrim(string* output, string input)
// 1-b. Function form.
void func::rtrim(string* variable)
// 2. Command form.
void sub::rtrim(string value) > output
// 3. Stream form.
void stream::rtrim() < input > output