Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 3, 2019 06:02
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/f67b1f61786093682ab4f5afd3bf59d1 to your computer and use it in GitHub Desktop.
Save parzibyte/f67b1f61786093682ab4f5afd3bf59d1 to your computer and use it in GitHub Desktop.
// Cuando sí existe y usando variables
char *pajar = "Hola mundo";
char *aguja = "mundo";
if (strstr(pajar, aguja) != NULL) {
printf("Existe %s dentro de %s\n", aguja, pajar);
} else {
printf("No existe %s dentro de %s\n", aguja, pajar);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment