Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 443 Bytes

substr.sh.md

File metadata and controls

16 lines (14 loc) · 443 Bytes

substr

substr -- Returns a substring.

substr returns a substring of a string specfied by start and length.

Usage

// 1. Function form.
void func::substr(
    string* output, string input, string start, string length)
void func::substr(
    string* output, string input, string start)
// 2. Command form.
void sub::substr(string input, string start, string length) > output
void sub::substr(string input, string start) > output