函数'memcpy'的参数太少

Ahm*_*ato 8 c c++ memory

我的理解是memcpy必须有3个参数:

void * memcpy ( void * destination, const void * source, size_t num );
Run Code Online (Sandbox Code Playgroud)

所以我正在尝试这段代码:

//char *tmpPtr is a pointer that points to some data
char frameBuffer[921600]; //destination starting a given index
int bufferIndex;//the given index
memccpy(frameBuffer+bufferIndex,tmpPtr,Data.size()-1);
Run Code Online (Sandbox Code Playgroud)

但我收到这个错误:

错误:函数`void*memccpy(void*,const void*,int,size_t)的参数太少

Dan*_*her 31

错字:

memccpy
   ^^
Run Code Online (Sandbox Code Playgroud)

你调用了错误的功能.

memccpyint在遇到复制品时,也会取一个字符(作为参数).