wmemchr.c

The libc implementation

Author

Marcel Sondaar

License

Public Domain

Summary
wmemchr.cThe libc implementation
Functions
wmemchrFinds the first occurance of the character c in s, where n is the maximum amount of bytes to compare

Functions

wmemchr

wchar_t * wmemchr(const wchar_t *s,
wchar_t c,
size_t n)

Finds the first occurance of the character c in s, where n is the maximum amount of bytes to compare

Returns a pointer to the location in the buffer where c is found

Returns NULL if c could not be found

wchar_t * wmemchr(const wchar_t *s,
wchar_t c,
size_t n)
Finds the first occurance of the character c in s, where n is the maximum amount of bytes to compare