strchr – Find Character In A String C and C++ Tutorial with ...
www.poftut.com › strchr-find-character-in-a-stringAug 02, 2019 · C library provides a lot of functions in order to use string or char array types. strchr() function is a very popular function which is used to find the first occurrence of a given character in a string or char array. Syntax and Parameters. As strchr() provides the first occurrence of the given char it will return a pointer to the first occurrence. We will also provide the string or char array we are searching in and the chart we want to locate.