memcpy()

copy memory block 

Function


SYNOPSIS

#include <string.h>

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


DESCRIPTION

The memcpy() function operates as efficiently as possible on memory areas. It does not check for overflow of any receiving memory area. Specifically, memcpy() copies n bytes from memory area s2 to s1. It returns s1.


PARAMETERS

s1 

Points to the target buffer.

s2 

Points to the source buffer.

n 

Is the number of bytes to copy.


RETURN VALUES

The memcpy() 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(), memmove(), memset(), strcpy(), strncpy()


PTC MKS Toolkit 10.4 Documentation Build 39.