_tcschr(str , c);Find a character in a string, using the current locale or a specified LC_CTYPE conversion state category.從一個字元串中查找字元。
基本介紹
- 中文名:_tcschr
- str:Null-terminated source string.
- c:Character to be located.
- 返回值:返回str中字元c及後面的字元串
功能,參數,返回值,例子,
功能
例如:
CString str1 = "ABCD#EFGH";
CString str2 = _tcschr(str1,TEXT('#'));
str2 結果為"#EFGH".
參數
str :Null-terminated source string.
c :Character to be located.
返回值
Returns a pointer to the last occurrence of c in str, or NULL if c is not found.
例子
while(*lp !=0)
{
cout<<lp;
lp=_tcschr(lp , 0);
}