From: Steven Stallion <sstallion@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] atol() bug
Date: Mon, 11 Mar 2013 15:44:05 -0700 [thread overview]
Message-ID: <CAGGHmKGkSnXTb_HAJF4VBX71oqr9fTS+rtskafPSFRiqtkCcbQ@mail.gmail.com> (raw)
In-Reply-To: <20130311220907.46195B82A@mail.bitblocks.com>
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]
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.
>
>
[-- Attachment #2: Type: text/html, Size: 1034 bytes --]
next prev parent reply other threads:[~2013-03-11 22:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-11 22:09 Bakul Shah
2013-03-11 22:44 ` Steven Stallion [this message]
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
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=CAGGHmKGkSnXTb_HAJF4VBX71oqr9fTS+rtskafPSFRiqtkCcbQ@mail.gmail.com \
--to=sstallion@gmail.com \
--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).