Skip to content

Instantly share code, notes, and snippets.

@krisys
Created November 15, 2011 18:22
Show Gist options
  • Save krisys/1367859 to your computer and use it in GitHub Desktop.
Save krisys/1367859 to your computer and use it in GitHub Desktop.
String tokenizer in C
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