xref: /haiku/src/system/libroot/posix/wchar/wcslen.c (revision f5821a1aee77d3b9a979b42c68a79e50b5ebaefe)
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
5 
6 #include <wchar_private.h>
7 
8 
9 size_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 
21 B_DEFINE_WEAK_ALIAS(__wcslen, wcslen);
22