9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] atol() bug
@ 2013-03-11 22:09 Bakul Shah
  2013-03-11 22:44 ` Steven Stallion
  0 siblings, 1 reply; 7+ messages in thread
From: Bakul Shah @ 2013-03-11 22:09 UTC (permalink / raw)
  To: 9fans

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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-03-12 21:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11 22:09 [9fans] atol() bug Bakul Shah
2013-03-11 22:44 ` Steven Stallion
2013-03-11 22:55   ` Bakul Shah
2013-03-11 23:55     ` erik quanstrom
2013-03-12  0:25       ` Kurt H Maier
2013-03-12  0:40       ` Bakul Shah
2013-03-12 21:05         ` a

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).