what I understand is that memcpy must have 3 arguments:
void * memcpy ( void * destination, const void * source, size_t num );
so I am trying this code:
//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);
but I am getting this error:
error: too few arguments to function `void * memccpy (void *, const
void *, int, size_t)
Typo:
You called the wrong function.
memccpyalso takes a character (as anintargument) upon encountering which the copy shall be stopped.