C++ strstr

来源:互联网 发布:ubuntu 微信调试工具 编辑:程序博客网 时间:2024/05/17 22:51

strstr

<cstring>
const char * strstr ( const char * str1, const char * str2 );      char * strstr (       char * str1, const char * str2 );
Locate substring
Returns a pointer to the first occurrence of str2 in str1, or a null pointer if str2 is not part of str1.

The matching process does not include the terminating null-characters, but it stops there.
原创粉丝点击