Created
July 27, 2019 05:14
-
-
Save surinoel/31af221f1734477c5de462afb824a4a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include <stdio.h> | |
#include <string.h> | |
int main(void) { | |
char s[30] = "Hello world!"; | |
char *ptr = strstr(s, "wor"); | |
if (ptr != NULL) { | |
printf("%s\n", ptr); | |
} | |
return 0; | |
} | |
#if 0 | |
world! | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment