打印
[其它应用]

Function srtchr的用法

[复制链接]
468|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
CallReceiver|  楼主 | 2016-9-20 17:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
const char * strchr ( const char * str, int character ); char *strchr ( char * str, int character );
Locate first occurrence of character in string
Returns a pointer to the first occurrenceof character in the Cstring
str.
The terminating null-character is considered part of the Cstring. Therefore, it can also be located in order to retrieve apointer to the end of a string.
Parameters(参数)

str :   C string.character:Character to be located. It is passed asits int promotion, butit is internally converted backto charfor thecomparison.Return Value:



A pointer to the first occurrenceof character in str.Ifthe character isnot found, the function returns a null pointer.



沙发
CallReceiver|  楼主 | 2017-12-5 22:56 | 只看该作者
嗯,预料中的结果,先结贴吧,多谢大家啦

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

64

主题

1695

帖子

1

粉丝