Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 395 Bytes

rtrim.sh.md

File metadata and controls

16 lines (14 loc) · 395 Bytes

rtrim

rtrim -- Strips whitespace(s) from the end of a string.

Strips whitespace (or other characters) from the end of a string.

Usage

// 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