-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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, while strtol allows checking for bogus input
(such as unexpected trailing characters) and range checking.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPuQ484KuGfSFAYARAhbtAKCG3ns34J/3MwAciJzYepVoiJU8zwCfSXUy
sibEJcg5KHzuQhUkiQTs+d0=
=ZcgL
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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