/* strings4_find_substr.c */ #include #include int main() { char str1[] = "Hello, World"; char str2[] = ","; /* string I want to search for */ char* result = strstr( str1, str2 ); if( result == NULL ) printf( "Could not find '%s' in '%s'\n", str2, str1 ); else printf( "Found a substring: '%s'\n", result ); return 0; }