Created
November 3, 2019 06:02
-
-
Save parzibyte/f67b1f61786093682ab4f5afd3bf59d1 to your computer and use it in GitHub Desktop.
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
// 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