Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmbsninc.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/mbsninc.c 00005 * PURPOSE: 00006 * PROGRAMERS: 00007 * Copyright 1999 Alexandre Julliard 00008 * Copyright 2000 Jon Griffths 00009 * 00010 */ 00011 00012 #include <precomp.h> 00013 00014 #include <mbstring.h> 00015 00016 /* 00017 * @implemented 00018 */ 00019 unsigned char * _mbsninc(const unsigned char *str, size_t n) 00020 { 00021 if(!str) 00022 return NULL; 00023 00024 while (n > 0 && *str) 00025 { 00026 if (_ismbblead(*str)) 00027 { 00028 if (!*(str+1)) 00029 break; 00030 str++; 00031 } 00032 str++; 00033 n--; 00034 } 00035 00036 return (unsigned char*)str; 00037 } Generated on Sun May 27 2012 04:36:29 for ReactOS by
1.7.6.1
|