Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmbstowcs.c
Go to the documentation of this file.
00001 #include <precomp.h> 00002 00003 00004 /* 00005 * @implemented 00006 */ 00007 size_t mbstowcs (wchar_t *widechar, const char *multibyte, size_t number) 00008 { 00009 int bytes; 00010 size_t n = 0; 00011 00012 while (n < number) { 00013 00014 if ((bytes = mbtowc (widechar, multibyte, MB_LEN_MAX)) < 0) 00015 return (size_t) -1; 00016 00017 if (bytes == 0) { 00018 *widechar = (wchar_t) '\0'; 00019 return n; 00020 } 00021 00022 widechar++; 00023 multibyte += bytes; 00024 n++; 00025 } 00026 00027 return n; 00028 } Generated on Sat May 26 2012 04:35:35 for ReactOS by
1.7.6.1
|