function in C tokenizes/parses the given string using delimiterSyntax:
char * strtok ( char * str, const char * delimiters );Example:
int main ()
char string ="Test,string1,Test,string2:Test:string3";
printf ("String \"%s\" is split into tokens:\n",string);
p = strtok (string,",:");
while (p!= NULL)
p = strtok (NULL, ",:");
String âTest,string1,Test,string2:Test:string3â³ is split into tokens:
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 228 / 158732899. Delta: 0.00320 с