Programmers learn & share
0 votes

Problem :

Looking for solution on bellow problem
assign searchresult with a pointer to any instance of searchchar in personname. hint: use strchr().
by (6.9k points)   | 111 views

1 Answer

0 votes

Solution :

The strchr() function is used to find the first occurrence of a specified character in a string. 
The Syntax is char *strchr(char *str, int ch); 
The function strchr() searches str from left side to right side until the character ch is found or the terminating NULL character is found. 
If ch is found, a pointer to it is returned. 
If not, NULL is returned.

Further Readings:

by (36.1k points)  
2,183 questions
2,483 answers
241 users