Implementation errors in strtol()

Clint Olsen clint at 0lsen.net
Thu Jan 20 13:57:56 PST 2005


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


More information about the freebsd-current mailing list