Strchr, wcschr, strrchr, wcsrchr, _ tcschr, _ tcsrchr Function

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.