strings
0 Answers
strings
| Flag | PURGE
implement the strtok() functin in C,, the strtok() function first takes the string for the first time, then it takes a NULL value, like this
/* walk through the first token*/
token = strtok(str, s);
/* walk through other tokens */
while( token != NULL )
{
printf( " %s\n", token );
token = strtok(NULL, s);
}
so you must write as a source code for the strtok() in C
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.