Appendix B: Global Variables — Error Handling
errno
Declaration:
int errno
Category(ies):
Error Handling, Utilities
Description:
Global error set by some system utility routines: strtod, strtol.
Inputs:
Not applicable.
Outputs:
Not applicable.
Assumptions:
Access_AMS_Global_Variables must be defined.
Side Effects:
Not applicable.
Availability:
On AMS 2.04 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
strtod, strtol
Example:
Access_AMS_Global_Variables;
long l1, l2;
short e1, e2;
l1 = strtol( "2147483647", NULL, 10 );
e1 = errno;
// 0 (result OK)
l2 = strtol( "2147483648", NULL, 10 );
e2 = errno;
// ERANGE (result is LONG_MAX)
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
1223
Beta Version January 26, 2001