from atof(2):

     BUGS
          Atoi, atol, and atoll accept octal and hexadecimal numbers
          in the style of C, contrary to the ANSI specification.


On Mon, Mar 11, 2013 at 3:09 PM, Bakul Shah <bakul@bitblocks.com> wrote:
The atol() manpage says:

          Atoi and atol recognize an optional string of tabs and
          spaces, then an optional sign, then a string of decimal dig-
          its.

And yet atol(x) acts exactly like strol(x, nil, 0). This makes
it unnecessarily incompatible with the unix version.  Ditto
for atoll(). My preference would be to fix the code and not
the man page.