Changelog: - implemented wcstod and _mbsnbcat Alberto Index: mbcs.c =================================================================== RCS file: /home/wine/wine/dlls/msvcrt/mbcs.c,v retrieving revision 1.21 diff -u -r1.21 mbcs.c --- mbcs.c 19 Dec 2002 04:21:30 -0000 1.21 +++ mbcs.c 26 Dec 2002 11:31:17 -0000 @@ -249,6 +249,17 @@ } /********************************************************************* + * _mbsnbcat(MSVCRT.@) + */ +unsigned char* _mbsnbcat(unsigned char* dst, const unsigned char *src, size_t count ) +{ + unsigned char* insertionPoint=dst; + while(*insertionPoint) + insertionPoint=_mbsinc(insertionPoint); + return _mbsnbcpy(insertionPoint,src,count); +} + +/********************************************************************* * _mbsnbcpy(MSVCRT.@) */ unsigned char* _mbsnbcpy(unsigned char* dst, const unsigned char* src, MSVCRT_size_t n) Index: msvcrt.spec =================================================================== RCS file: /home/wine/wine/dlls/msvcrt/msvcrt.spec,v retrieving revision 1.57 diff -u -r1.57 msvcrt.spec --- msvcrt.spec 12 Dec 2002 02:20:48 -0000 1.57 +++ msvcrt.spec 26 Dec 2002 11:31:17 -0000 @@ -359,7 +359,7 @@ @ cdecl _mbsinc(str) _mbsinc @ cdecl _mbslen(str) _mbslen @ cdecl _mbslwr(str) _mbslwr -@ stub _mbsnbcat #(str str long) +@ cdecl _mbsnbcat (str str long) _mbsnbcat @ cdecl _mbsnbcmp(str str long) _mbsnbcmp @ cdecl _mbsnbcnt(ptr long) _mbsnbcnt @ stub _mbsnbcoll #(str str long) @@ -753,7 +753,7 @@ @ forward wcsrchr ntdll.wcsrchr @ forward wcsspn ntdll.wcsspn @ forward wcsstr ntdll.wcsstr -@ stub wcstod #(wstr ptr) +@ cdecl wcstod (wstr ptr) wcstod @ forward wcstok ntdll.wcstok @ forward wcstol ntdll.wcstol @ forward wcstombs ntdll.wcstombs Index: wcs.c =================================================================== RCS file: /home/wine/wine/dlls/msvcrt/wcs.c,v retrieving revision 1.12 diff -u -r1.12 wcs.c --- wcs.c 19 Dec 2002 04:21:30 -0000 1.12 +++ wcs.c 26 Dec 2002 11:31:19 -0000 @@ -385,3 +385,17 @@ MultiByteToWideChar (CP_ACP, MB_PRECOMPOSED, buf, -1, out, 128); return out; } + +/********************************************************************* + * wcstod (MSVCRT.@) + */ +double wcstod( const MSVCRT_wchar_t *nptr, MSVCRT_wchar_t **endptr ) +{ + char buf[128],*bufEnd; + double fResult; + WideCharToMultiByte(CP_ACP,0,nptr,-1,buf,128,NULL,NULL); + fResult=strtod(buf,&bufEnd); + *endptr=nptr+(bufEnd-buf); + return fResult; +} +