1#include <assert.h>2#include <stdio.h>3#include <wchar.h>45/*6output:7testing8done9end:10*/1112int13main()14{15 wchar_t *p, buf[40];1617 puts("testing");1819 wmemset(buf, 2, 40);20 for (p = buf; p < &buf[40]; ++p)21 assert(*p == 2);2223 wmemset(buf, 0, 0);24 for (p = buf; p < &buf[40]; ++p)25 assert(*p == 2);2627 puts("done");2829 return 0;30}