blob: 021a8cabc340e1275837ce13bf0ce9587564fd15 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
4 *
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 */
7
8#include "_string.h"
9
10#ifdef WANT_WIDE
11# define Wstrlen wcslen
12#else
13# define Wstrlen strlen
14#endif
15
16size_t Wstrlen(const Wchar *s)
17{
18 register const Wchar *p;
19
20 for (p=s ; *p ; p++);
21
22 return p - s;
23}
24libc_hidden_weak(Wstrlen)