-/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
#include <wchar.h>
+#ifdef WCSCHRNUL
+# define __wcschrnul WCSCHRNUL
+#endif
/* Find the first occurrence of WC in WCS. */
wchar_t *
-__wcschrnul (wcs, wc)
- const wchar_t *wcs;
- const wchar_t wc;
+__wcschrnul (const wchar_t *wcs, const wchar_t wc)
{
while (*wcs != L'\0')
if (*wcs == wc)
return (wchar_t *) wcs;
}
+#ifndef WCSCHRNUL
weak_alias (__wcschrnul, wcschrnul)
+#endif