9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] atoi(s) != (int)strtol(s, nil, 10)
@ 2022-06-07  5:03 adr
  0 siblings, 0 replies; only message in thread
From: adr @ 2022-06-07  5:03 UTC (permalink / raw)
  To: 9fans

I almost went nuts trying to figure out an estrange behavior of
neatroff. It's a 5c bug? It's using some GCC extension? No, it's
just that atoi is reading 08 as octal.

I sow some small discussion on the archives, so I'm not doing that
again, just an advise to new people porting software:

Grep for ato(i|l) first!


9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tfd15e5d5411bde5a-M6ce63c344a72d5488ffefe9c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-07  5:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07  5:03 [9fans] atoi(s) != (int)strtol(s, nil, 10) adr

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).