The C library function int atol(const char *str) converts the string argument str to a long integer (type long). If no valid conversion could be performed, it returns zero. In most implementations, pasing a null pointer will cause a segementation fault. ^ Replaced by strtol
Library: stdlib.h Prototype: long atol(const char *str) Syntax:
atof String to floating point conversion.
atoi String to integer conversion.
strtod String to double conversion.
strtol String to long integer conversion.
strtoul String to unsigned long integer conversion.
Top | Master Index | Keywords | Functions |