CRE Programmer's Guide

Common Run-Time Environment (CRE) Programmer’s Guide528146-004
8-1
8
String and Memory Block Functions
This section describes the string and memory block functions supported by the CRE.
The term “white space” in a function description includes spaces, newline characters,
horizontal tabs, vertical tabs, and form feeds.
String Functions
This subsection describes the string 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-1. TNS CRE String Functions (page1of2)
Function Name Function Action
Atoi, Atol, Atof
on
page 8-3
Converts a string of decimal characters to an integer or a real number.
Stcarg
on
page 8-4
Scans a string until it finds one of the characters from another specified
string.
Stccpy
on
page 8-5
Copies characters from one string to another.
Stcd_I
on
page 8-6
Converts a string of decimal characters to an integer.
Stcd_L
on
page 8-7
Converts a string of decimal characters to a 32-bit integer.
Stch_I
on
page 8-8
Converts a string of hexadecimal characters to an integer.
Stci_D
on
page 8-9
Converts a signed integer to a string of decimal characters.
Stcpm
on
page 8-10
Scans a string for a substring that matches a specified pattern.
Stcpma
on
page 8-11
Determines whether a string starts with a substring that matches a
specified pattern.
Stcu_D
on
page 8-12
Converts an unsigned integer to a string of decimal characters.
Stpblk
on
page 8-13
Scans a string for a non-white-space character.
Stpsym
on
page 8-14
Gets a symbol from a string and stores it in another specified string.
Stptok
on
page 8-15
Scans a string for a token and copies the token to another string.