请输入您要查询的百科知识:

 

词条 _tcschr
释义

原型

_tcschr(str , c);

功能

Find a character in a string, using the current locale or a specified LC_CTYPE conversion state category.

从一个字符串中查找字符。

例如:

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 first occurrence of c in str, or NULL if c is not found.

返回str中的第一个字符c的位置开始的字符串的指针,如果没有发现返回NULL。

例子

while(*lp !=0)

{

cout<<lp;

lp=_tcschr(lp , 0);

}

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/27 5:25:56