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

mbslen.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   See COPYING in the top level directory
00003  * PROJECT:     ReactOS system libraries
00004  * FILE:        lib/sdk/crt/mbstring/mbslen.c
00005  * PURPOSE:      Determines the length of a multi byte string
00006  * PROGRAMERS:
00007  *              Copyright 1999 Alexandre Julliard
00008  *              Copyright 2000 Jon Griffths
00009  *
00010  */
00011 
00012 #include <mbstring.h>
00013 
00014 /*
00015  * @implemented
00016  */
00017 size_t _mbslen(const unsigned char *str)
00018 {
00019   size_t len = 0;
00020   while(*str)
00021   {
00022     if (_ismbblead(*str))
00023     {
00024       str++;
00025       if (!*str)  /* count only full chars */
00026         break;
00027     }
00028     str++;
00029     len++;
00030   }
00031   return len;
00032 }

Generated on Sat May 26 2012 04:35:27 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.