2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
6 #include <wchar_private.h>
10 __wcsspn(const wchar_t* wcs
, const wchar_t* acceptIn
)
12 const wchar_t* wcPointer
= wcs
;
14 for (; (wc
= *wcPointer
) != L
'\0'; ++wcPointer
) {
15 const wchar_t* accept
;
16 for (accept
= acceptIn
; *accept
!= L
'\0'; ++accept
) {
24 return wcPointer
- wcs
;
28 B_DEFINE_WEAK_ALIAS(__wcsspn
, wcsspn
);