xref: /haiku/src/system/libroot/posix/wchar/wcschrnul.c (revision a127b88ecbfab58f64944c98aa47722a18e363b2)
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the MIT License.
4 */
5 
6 #include <wchar_private.h>
7 
8 
9 wchar_t*
10 __wcschrnul(const wchar_t* wcs, wchar_t wc)
11 {
12 	while (*wcs != L'\0' && *wcs != wc)
13 		wcs++;
14 
15 	return (wchar_t*)wcs;
16 }
17 
18 
19 B_DEFINE_WEAK_ALIAS(__wcschrnul, wcschrnul);
20