Hopefully create a branch and not destroy the svn repository.

svn path=/branches/reactos-yarotows/; revision=45219
This commit is contained in:
Timo Kreuzer 2010-01-23 23:25:04 +00:00
parent c88ec84439
commit 6afbc8f483
19442 changed files with 0 additions and 1060695 deletions

View file

@ -0,0 +1,28 @@
#include <precomp.h>
/*
* @implemented
*/
size_t mbstowcs (wchar_t *widechar, const char *multibyte, size_t number)
{
int bytes;
size_t n = 0;
while (n < number) {
if ((bytes = mbtowc (widechar, multibyte, MB_LEN_MAX)) < 0)
return (size_t) -1;
if (bytes == 0) {
*widechar = (wchar_t) '\0';
return n;
}
widechar++;
multibyte += bytes;
n++;
}
return n;
}