CRE Programmer's Guide
String and Memory Block Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
8-2
String Functions
Table 8-2 on page 8-3 shows the string functions supported by the native CRE library. 
The native CRE does not provide pTAL prototypes for these functions. It provides only 
the function names. Note that the function names 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.
Strcat on 
page 8-16
Concatenates two strings.
Strchr
 on 
page 8-17
Scans a string for the first occurrence of a specified character.
Strcmp
 on 
page 8-18
Compares two strings.
Strcpy
 on 
page 8-19
Copies one string to another.
Strcspn
 on 
page 8-20
Scans a string until it finds a character that is present in another 
specified string.
Strlen
 on 
page 8-21
Returns the length of a string.
Strncat
 on 
page 8-22
Concatenates one character string to the end of another.
Strncmp
 on 
page 8-23
Compares two strings up to a specified maximum number of 
characters.
Strncpy
 on 
page 8-24
Copies characters from one string to another.
Strpbrk
 on 
page 8-25
Scans a string for the first occurrence of any character present in 
another string.
Strrchr
 on 
page 8-26
Scans a string backwards for the last occurrence of a specified 
character.
Strspn
 on 
page 8-27
Scans a string until it finds a character that is not in another specified 
string.
Strstr
 on 
page 8-27
Determines whether one string is a substring of another string.
Strtod
 on 
page 8-28
Converts a string of characters to a 64-bit floating-point number.
Strtol
 on 
page 8-29
Converts a string of characters to a 32-bit integer using a specified 
base.
Strtoul
 on 
page 8-30
Converts a string of characters to a 32-bit unsigned integer with a 
specified base.
Substring_Search
on page 8-32
Determine whether one string is a substring of another string.
Table 8-1. TNS CRE String Functions (page2of2)
Function Name Function Action










