native

strtok

Syntax

native strtok(const text[], Left[], leftLen, Right[], rightLen, token=' ', trimSpaces=0);

Description

Breaks a string into two halves, by token.
See strbreak() for doing this with parameters.
Example:
str1[] = This *is*some text
strtok(str1, left, 24, right, 24, '*')
left will be "This "
Right will be "is*some text"
If you use trimSpaces, all spaces are trimmed from Left.