Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmbslen.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
1.7.6.1
|