libroot_debug: Merge guarded heap into libroot_debug.
[haiku.git] / src / system / libroot / posix / wchar / wcschr.c
blob8587e94addc00101037e09d3bf922188d008aded
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 wchar_t*
10 __wcschr(const wchar_t* wcs, wchar_t wc)
12 while (1) {
13 if (*wcs == wc)
14 return (wchar_t*)wcs;
15 if (*wcs++ == L'\0')
16 break;
19 return NULL;
23 B_DEFINE_WEAK_ALIAS(__wcschr, wcschr);