请输入您要查询的百科知识:

 

词条 memmem
释义

概述实现

包含文件:string.h

函数名: memmem

函数原型:extern void *memmem(const void *haystack, size_t haystacklen,

const void *needle, size_t needlelen);

功能:memmem - locate a substring

返回值:返回该位置的指针,如找不到,返回空指针。

此函数与strstr类似,不同之处是字符串needle和haystack都是字符数组,而不是以空字符结束的字符串。Needle-len是字符串needle的长度,haystack-len则是haystack的长度。这个函数是GNU C扩展的。

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/27 10:17:39