atol

 

Description

Converts string to a long.

Syntax

long atol( LPCSTR lpcsz )

Parameters

lpcsz
[input] the string to convert.

Return

a long value

Examples

EX1

void    atol_ex1()
{
    char    szString[] = "-556677";
    long    nn = atol(szString);
    out_int("value = ", nn);
}

Remark

See Also

Atoi

header to Include

origin.h

Reference