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>
    long int atol( const char *ptr );
    long int _wtol( const wchar_t *ptr );

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

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

Returns:
    The atol function returns the converted value.

Example:
    #include <stdlib.h>

    void main()
      {
        long int x;

        x = atol( "-289" );
      }

Classification:
    atol is ANSI, _wtol is not ANSI

Systems:
     atol - All, Netware

    _wtol - All

See Also:
    atoi, 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