-strchr() is a string function that are able to return the subset of the string after any character
Syntax-
strchr(string,char)
-Here it return the data of string read from that character.
program-
#include< stdio.h>
#include< string.h>
int main()
{
char s[20];
//input of string
printf("Enter string\n");
scanf("%s",&s);
printf("%s ",strchr(s,'a'));
printf("%s ",strchr(s,'i'));
printf("%s ",strchr(s,'p'));
}
Enter string
This_is_a_program
a_program
is_is_a_program
program