본문 바로가기

Programming/C & C++

memmove

memmove

Moves one buffer to another.

한 버퍼를 또다른 버퍼로 옮긴다.


void *memmove( void *dest, const void *src, size_t count );

Routine Required Header Compatibility
memmove <string.h> ANSI, Win 95, Win NT

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

memmove returns the value of dest.

Parameters

dest

Destination object //옮겨갈 객체

src

Source object //원래 객체

count

Number of bytes of characters to copy //카피할 문자들의 바이트들의 수

Remarks

The memmove function copies count bytes of characters from src to dest. If some regions of the source area and the destination overlap, memmove ensures that the original source bytes in the overlapping region are copied before being overwritten.

 

반응형