1#include <wchar.h> 2 3wchar_t* wmemset(wchar_t* d, wchar_t c, size_t n) { 4 wchar_t* ret = d; 5 while (n--) 6 *d++ = c; 7 return ret; 8} 9