Created
November 15, 2011 18:22
-
-
Save krisys/1367859 to your computer and use it in GitHub Desktop.
String tokenizer in C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *token = strtok(char *str, char *delim); // first time. | |
while(token != NULL){ | |
token = strtok(NULL, delim); // to retrieve the subsequent tokens. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment