From: adr <adr@SDF.ORG>
To: 9fans@9fans.net
Subject: [9fans] atoi(s) != (int)strtol(s, nil, 10)
Date: Tue, 7 Jun 2022 05:03:51 +0000 (UTC) [thread overview]
Message-ID: <c58b47df-7655-822f-ac42-8c467d6256b6@SDF.ORG> (raw)
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!
adr.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tfd15e5d5411bde5a-M6ce63c344a72d5488ffefe9c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
reply other threads:[~2022-06-07 5:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c58b47df-7655-822f-ac42-8c467d6256b6@SDF.ORG \
--to=adr@sdf.org \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).