1#include <assert.h>2#include <stdio.h>3#include <wchar.h>45/*6output:7testing8done9end:10*/1112int13main(void)14{15 wchar_t buf[40] = {1, 2, 3, 4, 5};1617 puts("testing");18 assert(wmemcmp(buf, (wchar_t[]) {1, 2, 3, 4, 5}, 5) == 0);19 assert(wmemcmp(buf, (wchar_t[]) {1, 1, 1, 1, 1}, 5) > 0);20 assert(wmemcmp(buf, (wchar_t[]) {1, 3, 1, 1, 1}, 5) < 0);21 assert(wmemcmp(buf, (wchar_t[]) {2, 3, 4, 5, 6}, 0) == 0);22 puts("done");2324 return 0;25}