The rstol() function

The rstol() function converts a null-terminated string into a long integer value.

Syntax

mint rstol(string, long_int)
   char *string;
   mlong *long_int;
string
A pointer to the null-terminated string to convert.
long_int
A pointer to an mlong variable to contain the converted value.

Usage

The legal range of values is -2,147,483,647 - 2,147,483,647. The value -2,147,483,648 is not valid because this value is a reserved value that indicates null.

Return values

=0
The conversion was successful.
!=0
The conversion failed.