Strchr, wcschr, strrchr, wcsrchr, _ tcschr, _ tcsrchr Function
(1)
Char * strchr (const char*String,Int C );
Wchar_t*Wcschr (const wchar_t*String,Wchar_t C );
Find a character in a string.
Searches for the specified character that appears for the first time in a string.
Return Value
Each of these functions returns a pointer to the first occurrenceCInString (address), Or null ifCIs not found.
_ Tcschr is strchr or wcschr, which is related to whether _ Unicode is defined(2)
Char * strrchr (const char * String, Int C);
Char * wcsrchr (const wchar_t*String,Int C );
Scan a string for the last occurrence of a character.
Searches for the last specified character in a string.
Return Value
Each of these functions returns a pointer to the last occurrenceCInString (address), Or null ifCIs not found.
Find the address of the last character in the string that appears, and then return the address that appears.
_ Tcsrchr is strrchr or wcsrchr, which is related to whether _ Unicode is defined
Strchr, wcschr, strrchr, wcsrchr, _ tcschr, _ tcsrchr Function