libroot_debug: Merge guarded heap into libroot_debug.
[haiku.git] / src / system / libroot / posix / wchar / wcspbrk.c
blob1547fafd0858043aa24056a48434570e1a9c1a41
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 __wcspbrk(const wchar_t* wcs, const wchar_t* acceptIn)
12 for (; *wcs != L'\0'; ++wcs) {
13 const wchar_t* accept = acceptIn;
14 for (; *accept != L'\0'; ++accept) {
15 if (*accept == *wcs)
16 return (wchar_t*)wcs;
20 return NULL;
24 B_DEFINE_WEAK_ALIAS(__wcspbrk, wcspbrk);