Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 2, 2019 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/e8847cec2ca7db870a7a876f3421daed to your computer and use it in GitHub Desktop.
Save parzibyte/e8847cec2ca7db870a7a876f3421daed to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
int main(){
char cadena[] = "Hola,mundo",
delimitador[] = ",";
char *token = strtok(cadena, delimitador);
if(token != NULL){
printf("Encontramos un token: %s", token);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment