strpbrk
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <string.h> 中定义
|
||
| const char* strpbrk( const char* dest, const char* str ); |
||
| char* strpbrk( char* dest, const char* str ); |
||
发现的第一个字符字节的字符串所指向的
dest,这也是在字节的字符串所指向的str.原文:
Finds the first character in byte string pointed to by
dest, that is also in byte string pointed to by str.目录 |
[编辑] 参数
| dest | - | NULL结尾的字节串的指针来进行分析
原文: pointer to the null-terminated byte string to be analyzed |
| str | - | 指针指向NULL结尾的字节字符串,其中包含的字符进行搜索
原文: pointer to the null-terminated byte string that contains the characters to search for |
[编辑] 返回值
dest,这也是str,或NULL如果不存在这样的字符的第一个字符的指针.原文:
Pointer to the first character in
dest, that is also in str, or NULL if no such character exists.[编辑] 示例
输出:
1 2 3 4 5
[编辑] 另请参阅
| 返回的长度的最大初始段,由 只未发现另一个字节字符串中的字符 原文: returns the length of the maximum initial segment that consists of only the characters not found in another byte string (函数) | |
| 找到第一个出现的字符 原文: finds the first occurrence of a character (函数) | |
| C++ documentation for strpbrk
| |