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