C Language strchr() Function: Finding the First Occurrence of a Character in a String
Header file: #include <string.h> strchr() is used to find the first occurrence of a character in a string, and its prototype is as follows: char * strchr (const char *str, int c); 【Parameters】str is the string to be searched, and c is the character to be searched for. strchr() will find the address of the … Read more