strcopy

Copies a string.

Format

strcopy <string> <pos> <len> <strvar>

Remarks

Copies a substring of <string> to the string variable <strvar>. The substring begins at the <pos>th(1-origin) character in <string>, and its length is <len>.

Example

strcopy 'tera term' 6 4 substr
; substr='term'