Name
atol function — Converts a string to a long integer
Synopsis
long atol(const char* str)
The atol
function reads an
integer from the character array str
, and returns the value of the number.
The conversion is similar to calling strtol(str
, NULL
, 10)
.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.