summaryrefslogblamecommitdiff
path: root/src/string/wmemchr.c
blob: a3ee0e61810df54972d738ab7f70e3f6e46f4df5 (plain) (tree)
1
2
3
4
5
6
7
8







                                                       
#include <string.h>
#include <wchar.h>

wchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n)
{
	for (; n && *s != c; s++);
	return n ? (wchar_t *)s : 0;
}