informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

rstoi()

The rstoi() function converts a null-terminated string into a short integer value.

Syntax

Usage

The legal range of values is from -32767 to 32767. The value -32768 is not valid because this value is a reserved value that indicates null.

If string corresponds to a null integer, ival points to the representation for a SMALLINT null. To convert a string that corresponds to a long integer, use rstol(). Failure to do so can result in corrupt data representation.

Return Codes

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


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved