libroot_debug: Merge guarded heap into libroot_debug.
[haiku.git] / src / system / libroot / posix / wchar / wcslen.c
blobcd042a4dc33ae55f86f11e9cd31ca97e1b9d6c59
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
6 #include <wchar_private.h>
9 size_t
10 __wcslen(const wchar_t* wcs)
12 size_t length = 0;
14 while (*wcs++ != L'\0')
15 length++;
17 return length;
21 B_DEFINE_WEAK_ALIAS(__wcslen, wcslen);