1#include <wchar.h>23#undef wmemcmp45int6wmemcmp(const wchar_t *s, const wchar_t *t, size_t n)7{8 unsigned long ls, lt;910 for (; n > 0 && *s == *t; --n)11 ++s, ++t;12 if (n == 0)13 return 0;1415 ls = *s, lt = *t;16 return ls - lt;17}