memmove()

move memory block 

Function


SYNOPSIS

#include <string.h>

void *memmove(void *s1, const void *s2, size_t n);


DESCRIPTION

The memmove() function operates as efficiently as possible on memory areas. It does not check for overflow of any receiving memory area. Specifically, memmove() copies n bytes from memory areas s2 to s1. It returns s1. If s1 and s2 overlap, all bytes are copied in a preserving manner (unlike memcpy()).


PARAMETERS

s1 

Points to the target buffer.

s2 

Points to the source buffer.

n 

Is the number of bytes to copy.


RETURN VALUES

The memmove() function returns pointer s1.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
memccpy(), memchr(), memcmp(), memcpy(), memset()


PTC MKS Toolkit 10.2 Documentation Build 28.