Skip to content

Instantly share code, notes, and snippets.

@surinoel
Created July 27, 2019 05:14
Show Gist options
  • Save surinoel/31af221f1734477c5de462afb824a4a6 to your computer and use it in GitHub Desktop.
Save surinoel/31af221f1734477c5de462afb824a4a6 to your computer and use it in GitHub Desktop.
#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