Broken cross-build, again.

Saulius Krasuckas saulius2 at ar.fi.lt
Thu Apr 14 14:04:25 CDT 2005


* On Thu, 14 Apr 2005, Jacek Caban wrote:
> Saulius Krasuckas wrote:
> >Is someone working on any atoi() implementation to use it in Winetest now?
> 
> Here you have:

It not me who doesn't have it.  It's a question: is anyone prepared patch
to solve this problem.  Just some etiquette, right?

And the second question is: should it go to the "include/wine/test.h" or
some separate header like a "include/wine/strings.h".

> int atoi(char* buf)
> {
>     int ret = 0;
>     char *c = buf;
> 
>     if(*c == '-')
>         c++;
> 
>     while(*c) {
  ...
> }

BTW, Jacek, your implementation lacks ability to skip leading white-spaces
which isn't a case for __atoi64() and StrToInt()  already implemented by
Wine. ;-P




More information about the wine-devel mailing list