[其它应用] Function srtchr的用法

[复制链接]
544|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

粉丝
快速回复 在线客服 返回列表 返回顶部