#include
char *strpbrk(char *s1, const char *s2);
finds the first occurrence of a character.
#include /* including standard library */
//#include /* uncomment this for Windows */
#include
int main( void ) {
char string1[]="You can help with your experience to improve this page";
char string2[]="help";
printf("So please %s\n", strpbrk( string1, string2 ) );
return 0;
}
Output:
user@host:~$ ./strpbrk
So please help with your experience to improve this page