Bakul Shah
2013-03-11 22:09:07 UTC
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.
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.