词条 | _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条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。