CARM User's Guide

Discontinued

Data Conversion Routines

RoutineAttributesDescription
absreentrantGenerates the absolute value of an integer type.
atof Converts a string to a float.
atoi Converts a string to an int.
atol Converts a string to a long.
labsreentrantGenerates the absolute value of a long type.
strtod Converts a string to a float.
strtol Converts a string to a long.
strtoul Converts a string to an unsigned long.

The data conversion routines convert strings of ASCII characters to numbers. All of these routines are implemented as functions and most are prototyped in stdlib.h. The abs and labs functions are prototyped in math.h.