Member of the string class.
c = strtok(a)
c = strtok(a, b)
[c, d] = strtok(a)
[c, d] = strtok(a, b)
Determines the first delimited token in a string. c = strtok(a) determines the first token that is delimited by white space. c = strtok(a, b) determines the first token that is delimited by another string.
| Name | Description |
| a | Specifies the string in which you want to find the first delimited token. |
| b | Specifies a string that delimits the token you want to find. |
| Name | Description |
| c | Returns the first delimited token. c is a string. |
| d | Returns the part of a, including the delimiter, that follows c. |
A = 'this is a test for strtok'
B = 'is'
[C, D] = strtok(A, B)