Data Conversion

Routine

Attributes

Description

abs

reentrant

Generates the absolute value of an integer type

atof

Converts a string to a float

atof517

Converts a string to a float using high-speed features of the 80C517

atoi

Converts a string to an int

atol

Converts a string to a long

cabs

reentrant

Generates the absolute value of a character type

labs

reentrant

Generates the absolute value of a long type

The data conversion routines convert strings of ASCII characters to numbers. All of these routines are implemented as functions and most are prototyped in the include file STDLIB.H. The abs, cabs, and labs functions are prototyped in the MATH.H  include file. The atof517 function is prototyped in the include file 80C517.H.