aboutsummaryrefslogtreecommitdiffstats
path: root/memory/wmemchr.c
blob: 599b33e22628e9bae22c33eb9630eabb7fb14e49 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "memory.h"

wchar_t *wmemchr(wchar_t const *buffer, wchar_t value, size_t size)
{
	for (size_t i = 0; i < size; i++)
		if (buffer[i] == value)
			return (wchar_t *)&buffer[i];
	return NULL;
}