#include <as400_protos.h>
void* _MEMCPY_WT(void *target,
const void *source,
size_t length);
void _MEMCPY_WT2(const ILEpointer *target,
const ILEpointer *source,
size_t length);
Note: These functions can only be used in an i5/OS PASE program. See i5/OS PASE for more information about creating i5/OS PASE programs.
The _MEMCPY_WT() and _MEMCPY_WT2() functions copy memory without destroying 16-byte tagged pointers.
Standard memory copy functions such as memcpy never produce a usable tagged pointer in the target memory. _MEMCPY_WT and _MEMCPY_WT2 copy memory in a way that preserves the integrity of any complete (16-byte) tagged pointers copied, as long as the source and target have the same alignment with respect to a 16-byte boundary.
_MEMCPY_WT and _MEMCPY_WT2 require no authority.
_MEMCPY_WT returns the target memory address. _MEMCPY_WT2 returns no function result.
Any error is reported with an i5/OS exception message that the system converts to an i5/OS PASE signal. See i5/OS PASE Signal Handling for information about handling i5/OS exceptions.
| Top | i5/OS PASE APIs | APIs by category |