Skip to content
Ilya Kapitonau edited this page Aug 5, 2021 · 2 revisions

Env::Memcpy

void* Memcpy(void* pDst, const void* pSrc, uint32_t size);

Equivalent of standard memmove. Copies size bytes from the object pointed to by pSrc to the object pointed to by pDst.

Parameters

  • pDst : pointer to the memory location to copy to
  • pSrc : pointer to the memory location to copy from
  • size : number of bytes to copy

Return value

  • pDst

Notes

  • none

Example

char src[] = "This is Env::Memcmp example";
Env::Memcpy(src, src + 8, 20);
Env::DocAddText("example", src);

Output:

"example": "Env::Memcmp example"
Clone this wiki locally