1#include <wchar.h> 2 3size_t wcslen(const wchar_t *s) 4{ 5 const wchar_t *a; 6 for (a=s; *s; s++); 7 return s-a; 8} 9