Re: [dev] fsbm

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Fri, 7 Nov 2014 10:11:00 +0000

On Fri, Nov 07, 2014 at 08:05:43AM +0100, k0ga_AT_shike2.com wrote:
>
> > * Use strtonum() or estrtol() from sbase instead of atoi().
>
> I agree here if the string comes from the user. If the string
> is an internal string then there is no problem with atoi.

It is generally unlikely that the string has been validated to
be an integer before getting to atoi(). With atoi() you cannot
distinguish between an invalid integer and 0.

Generally speaking, it should never be used.
Received on Fri Nov 07 2014 - 11:11:00 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 07 2014 - 11:12:18 CET