informix
INFORMIX-ESQL/C Programmer's Manual
ESQL/C Function Library

rstol()

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

Syntax

Usage

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

Return Codes

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

Example

This sample program is in the rstol.ec file in the demo directory.

Output


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved