ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

mbstowcs.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.