検索対象の文字列Aから文字列Bを探す。
More...
Go to the source code of this file.
|
char * | strstr (const char *cs, const char *ct) |
| 検索対象の文字列Aから文字列Bを探す。 More...
|
|
検索対象の文字列Aから文字列Bを探す。
Definition in file strstr.c.
◆ strstr()
char* strstr |
( |
const char * |
cs, |
|
|
const char * |
ct |
|
) |
| |
検索対象の文字列Aから文字列Bを探す。
- Parameters
-
[in] | cs | 検索対象の文字列 |
[in] | ct | 検索語句(検索キーワード)となる文字列 |
- Returns
- 検索語句が見つかった場合はその位置をポインタで返し、見つからなかった場合はNULLを返す。
Definition at line 12 of file strstr.c.
17 for (; *cs !=
'\0'; cs++)
23 while ((*cq !=
'\0') && (*cr !=
'\0'))