memcpy


Object copy

[Classification]

Standard library

[Syntax]

#include <string.h>

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

void __far * __far _COM_memcpy_ff(void __far *s1, const void __far *s2, size_t n);

[Return value]

Returns the value of s1.

[Description]

This function copies the n number of characters from a object indicated by s2 to a object indicated by s1.

The operation is undefined if the copy source and copy destination areas overlap.

[Caution]

The memcpy function may be internally called by CC-RL and is included in the runtime library. Do not create a user function having the name memcpy.