functionstrtok

Splits a string at the places given by the token.

Information

Splits a string at the places given by the token, for example:

  • strtok("abcbdef","b") => {"a","c","def"}
  • strtok("abcbdef","cd") => {"ab","ef"}

Note: strtok does not return empty tokens. To split a read file into lines, use stringSplit instead (splits only on character).

Inputs

TypeNameDefaultDescription
Stringstring
Stringtoken

Outputs

TypeNameDefaultDescription
Stringstrings