CRE Programmer's Guide

String and Memory Block Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
8-3
Atoi, Atol, Atof
See the Guardian Native C Library Calls Reference Manual for descriptions of these
functions.
Atoi, Atol, Atof
The Atoi, Atol, and Atof functions convert a string of decimal characters to an integer or
floating-point number. These functions are not available in the native CRE library.
str
is a pointer to the string to convert.
Table 8-2. Native CRE String Functions
Function Name Native CRE Library Function Name
strcat Concatenates two strings.
strchr Scans a string for the first occurrence of a specified character.
strcmp Compares two strings.
strcpy Copies one string to another.
strcspn Scans a string until it finds a character that is present in another
specified string.
strlen Returns the length of a string.
strncat Concatenates one character string to the end of another.
strncmp Compares two strings up to a specified maximum number of
characters.
strncpy Copies characters from one string to another.
strpbrk Scans a string for the first occurrence of any character present in
another string.
strrchr Scans a string backwards for the last occurrence of a specified
character.
strspn Scans a string until it finds a character that is not in another specified
string.
strstr Determines whether one string is a substring of another string.
strtok Scans a string for a token and copies the token to another string.
INT PROC RTL_Atoi_( str );
STRING .EXT str; ! in TNS only
INT(32) PROC RTL_Atol_( str );
STRING .EXT str; ! in TNS only
REAL(64) PROC RTL_Atof_( str );
STRING .EXT str; ! in TNS only