Table of Contents

MemCpy

Namespace
ZPlatform
FUNCTION MemCpy (
 [input] dstPtr : POINTER TO BYTE,
 [input] srcPtr : POINTER TO BYTE,
 [input] size : UDINT)

Copies the values of all variables in a given memory area with srcPtr and size to another memory area given with dstPtr.

This implementation is a wrapper for Tc2_System.MEMCPY No additional checks for memory overlapping etc. are performed. This is a low-level function and should be used with care. A safe(r) variant of this function is MemMove, which takes care of overlapping memory areas.

Inputs

dstPtr POINTER TO BYTE

start address of the target memory area

srcPtr POINTER TO BYTE

start address of the source memory area

size UDINT

number of bytes to be copied