1/* 2** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved. 3** Distributed under the terms of the MIT License. 4*/ 5 6#include <wchar_private.h> 7 8 9size_t 10__wcslen(const wchar_t* wcs) 11{ 12 size_t length = 0; 13 14 while (*wcs++ != L'\0') 15 length++; 16 17 return length; 18} 19 20 21B_DEFINE_WEAK_ALIAS(__wcslen, wcslen); 22