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