Eric Blake wrote:
> According to Andreas Schwab on 11/17/2007 3:13 AM:
>> atoi only parses decimal, strtol also accepts 0 and 0x prefixes.
> 
> Additionally, atoi should be avoided in robust programs, since it provides
> no portable error checking,

That is why I used strtol nearly everywhere.  This fixes the issue
at hand.  The few remaining places are pre-tested for starting with
a digit and I don't care if there is trailing junk.  (e.g. a string
message with a numeric "priority" level.)

Thank you.

Regards, Bruce

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to