1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <wchar.h> size_t wcslen(const wchar_t * s) { size_t l = 0; while (s[l] != L'\0') { l++; } return l; } /* STDC(199409) */