strstr


文字列から文字列を探索します。

[所属]

標準ライブラリ

[指定形式]

#include <string.h>

char __near * __far strstr(const char __near *s1, const char __near *s2);

char __far * __far _COM_strstr_ff(const char __far *s1, const char __far *s2);

[戻り値]

見つかった文字列を指すポインタを返します。s2の指す文字列が見つからなかった場合,nullポインタを返します。s2 が長さゼロの文字列を指している場合,s1を返します。

[詳細説明]

s1の指す文字列の中で,s2の指す文字列と最初に一致する部分(null文字(\0)は除く)の位置を求めます。