2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/msvcrt/mbstring/mbsset.c
5 * PURPOSE: Fills a string with a multibyte character
6 * PROGRAMER: Boudewijn Dekker
11 #include <msvcrt/mbstring.h>
13 size_t _mbclen2(const unsigned int s);
18 unsigned char * _mbsset(unsigned char *src, unsigned int c)
20 unsigned char *char_src = src;
21 unsigned short *short_src = (unsigned short *)src;
23 if ( _mbclen2(c) == 1 ) {
25 while(*char_src != 0) {
32 while(*short_src != 0) {