strchr

来源:互联网 发布:c语言的地位作用 编辑:程序博客网 时间:2024/05/22 13:11

原型: char *strchr(const char *s,char c);

#include<string.h>

查找字符串s中首次出现字符c的位置,返回首次出现c的位置的指针,如果s中不存在c则返回NULL。

The strchr function finds the first occurrence of c instr, or it returns NULL ifc is not found. The null terminating character is included in the search.

0 0