Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>atoi</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
atoi
====

Syntax
------

     #include <stdlib.h>
     
     int atoi(const char *string);

Description
-----------

Convert as much of the string as possible to an equivalent integer
value.

This function is almost like `(int)strtol(string, NULL, 10)' (*note
strtol::.).

Return Value
------------

The equivalent value, or zero if the string does not represent a number.

Example
-------

     main(int argc, char **argv)
     {
       int i = atoi(argv[1]);
       ...


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson