Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdlib.h>
    int atoi( const char *ptr );
    int _wtoi( const wchar_t *ptr );

Description:
    The atoi function converts the string pointed to by ptr to int
    representation.

    The _wtoi function is identical to atoi except that it accepts a
    wide-character string argument.

Returns:
    The atoi function returns the converted value.

Example:
    #include <stdlib.h>

    void main()
      {
        int x;

        x = atoi( "-289" );
      }

Classification:
    atoi is ANSI, _wtoi is not ANSI

Systems:
     atoi - All, Netware

    _wtoi - All

See Also:
    atol, itoa, ltoa, sscanf, strtol, strtoul, ultoa, utoa

See Also:

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