memmove

 

Contents

Description

Move specified number of characters from one buffer to another

Syntax

LPVOID memmove( LPVOID dest, LPCVOID src, size_t count )

Parameters

dest
[modify] Destination buffer
src
[input] Source buffer
count
[input] Number of characters to move

Return

Returns a pointer to moved characters.

Examples

EX1

void memmove_ex1()
{
    char str1[40];
    char str2[] = "Hello World!xxxxxxxx";
    
    char*     pRet = (char *) memmove(str1, str2, 12);
    out_str(pRet);// output "Hello World!"
}

Remark

See Also

header to Include

origin.h

Reference