[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
atol

Convert a character string to a value of type long.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <stdlib.h>
long int atol(const char *nptr);
Parameters:
Parameters for this facility are:
Remarks:
The atol() function converts the character array pointed to by nptr to an integer of type long int.
This function skips leading white space characters.
This function sets the global variable errno to ERANGE if the converted value cannot be expressed as a value of type long int.
Return:
atol() returns an integer value of type long int.
See Also:
"atof"
"atoi"
"errno"
"scanf"
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000