tail head cat sleep
QR code linking to this page

manページ  — STRCHR

名称

strchr – 文字列中の文字を検索

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <string.h>

char *
strchr(const char *s, int c);

解説

strchr() 関数は、 s によって指される文字列の中で最初に出会う文字 c を見つけます。終端のヌル文字は、文字列の一部とみなします。 c が ‘\0’ である場合は、 strchr() は終端の ‘\0’ を見つけます。

戻り値

関数 strchr() は、見つけた文字へのポインタか、 または文字が文字列中に見つからない場合は NULL を返します。

関連項目

memchr(3), strcspn(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3)

規格

strchr() 関数は、 ISO/IEC 9899:1990 ("ISO C90") に適合しています。

STRCHR (3) April 19, 1994

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

There are 10 types of people in the world: those who understand binary, and those who don't.