strtok
Split a string at the first occurrence of one of the specified characters.
(s1,s2)=strtok(a)
(s1,s2)=strtok(a,delim)
Inputs
a A string.
delim a string, assumed to be " \n\t" if not specified..
Outputs
s1 The string preceding the first occurrence in a of any of the characters in delim .
s2 The string after the first occurrence in a of any characters in delim , with any leading characters in s2 that are from delim deleted from this output.