RtAtoi
RtAtoi converts a given string value to an integer.
Syntax
INT RtAtoi(
LPCSTR lpString
);
Parameters
lpString
The source character string.
Return Value
On success the function returns:
- An INT value produced by the conversion
On failure the function returns:
- Zero if the input cannot be converted
- INT_MAX if the converted value is too large for the return variable range
- INT_MIN if the converted value is too small for the return variable range
Remarks
RtAtoi is similar to atoi, but RtAtoi does not require the C runtime library and can work with any combination of run-time libraries.
This function supports decimal digits only, and does not allow leading whitespace or signs.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | Rtapi.h |
Library | RtApi.lib (Windows), Rtx_Rtss.lib (RTSS) |
See Also: