std::strstr
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <cstring>
|
||
| const char *strstr( const char *dest, const char *src ); |
||
| char *strstr( char *dest, const char *src ); |
||
。发现第一次出现的字节串
src中的字节串所指向的dest. Original:
Finds the first occurrence of the byte string
src in the byte string pointed to by dest. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 。参数。
| dest | - | 。检查null结尾的字节串的指针。
Original: pointer to the null-terminated byte string to examine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| src | - | 。以NULL结尾的字节要搜索的字符串指针。
Original: pointer to the null-terminated byte string to search for The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
===。 返回值。===
。
dest,或NULL中找到的子串的第一个字符的指针,如果没有这样的性格被发现。如果src指向一个空字符串,dest返回.Original:
Pointer to the first character of the found substring in
dest, or NULL if no such character is found. If src points to an empty string, dest is returned.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 。为例。
| 本节是不完整的 原因: no example |
[编辑] 。另请参阅。
| 找到第一个出现的字符 Original: finds the first occurrence of a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 找到最后出现的字符 Original: finds the last occurrence of a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| C documentation for strstr
| |