CRE Programmer's Guide

String and Memory Block Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
8-33
Memory Block Functions
Memory Block Functions
This subsection describes the memory block functions. Table 8-3 lists the memory
block functions supported by the TNS CRE. Each function described in this section
begins with the prefix RTL_ or CRE_. Refer to Using Standard Functions
on page 2-56
for more information.
Table 8-4
on page 8-33 shows the Memory Block functions supported by the native
CRE library. The native CRE does not provide pTAL prototypes for these functions. It
provides only the function names, which are case-sensitive. You can use the function
prototypes in the C header files as examples when writing your own pTAL prototypes
for these functions.
Table 8-3. TNS CRE Memory Block Functions
Standard Function Name Function Action
memchr Searches for a character in a block of memory.
memcmp Compares two blocks of memory.
memcpy Copies a block of memory.
memmove Moves a block of memory.
memset Initializes a block of memory to a specified character value.
memswap Exchanges one block of memory with a second block of
memory.
repmem Replicates values through a block of memory.
Table 8-4. Native CRE Memory Block Functions
Standard Function Name Native CRE Library Function Action
memchr Searches for a character in a block of memory.
memcmp Compares two blocks of memory.
memcpy Copies a block of memory.
memmove Moves a block of memory.
memset Initializes a block of memory to a specified character value.
wmemchr Searches for a wide character in a block of memory.
wmemcmp Compares two blocks of wide-character memory.
wmemcpy Copies a block of wide-character memory.
wmemmove Moves a block of wide-character memory.
wmemset Initializes a block of wide-character memory to a specified
character value.