Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2005 13:57:53 -0800
From:      Clint Olsen <clint@0lsen.net>
To:        Andrey Chernov <ache@nagual.pp.ru>, Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>, current@FreeBSD.ORG, bde@FreeBSD.ORG
Subject:   Re: Implementation errors in strtol()
Message-ID:  <20050120215753.GF54711@0lsen.net>
In-Reply-To: <20050120214406.GA70088@nagual.pp.ru>
References:  <20050120192324.GA30862@uriah.heep.sax.de> <20050120205501.GA69123@nagual.pp.ru> <20050120211449.GC30862@uriah.heep.sax.de> <20050120214406.GA70088@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 21, Andrey Chernov wrote:
> In general please don't forget that strtol(), atol() etc. supposed to
> parse user input and _detect_ syntax errors, it is their purpose. If they
> not do it or do it in half, each program forced to use its own parser
> instead.

If you want to be sure about your interpretation of the standard, you could
inquire on comp.lang.c.  I'm sure you will get a complete answer on that
forum.

-Clint



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050120215753.GF54711>