Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 288 Bytes

trim.sh.md

File metadata and controls

13 lines (11 loc) · 288 Bytes

trim

trim -- Strips whitespaces from both sides.

trim strips whitespaces (or other characters) from the beginning and end of a string.

Usage

// 1-a. Function format.
void func::trim(string* output, string input)
// 1-b. Function format.
void func::trim(string* variable)