Broken cross-build, again.

Jacek Caban jack at itma.pwr.wroc.pl
Thu Apr 14 08:45:11 CDT 2005


Saulius Krasuckas wrote:

>Is someone working on any atoi() implementation to use it in Winetest now?
>
>  
>
Here you have:

int atoi(char* buf)
{
    int ret = 0;
    char *c = buf;

    if(*c == '-')
        c++;

    while(*c) {
        if(*c < '0' || *c > '9')
            return 0;
        ret = ret*10 + (*c++)-'0';
    }

    return *buf == '-' ? -ret : ret;
}

Jacek



More information about the wine-devel mailing list