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 9wchar_t* 10__wcschr(const wchar_t* wcs, wchar_t wc) 11{ 12 while (1) { 13 if (*wcs == wc) 14 return (wchar_t*)wcs; 15 if (*wcs++ == L'\0') 16 break; 17 } 18 19 return NULL; 20} 21 22 23B_DEFINE_WEAK_ALIAS(__wcschr, wcschr); 24