mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-30 19:52:25 +00:00
16 lines
263 B
C
16 lines
263 B
C
|
/*
|
||
|
* Work around lack of wmemchr in older MSVC libraries.
|
||
|
*/
|
||
|
|
||
|
#include <wchar.h>
|
||
|
|
||
|
#include "defs.h"
|
||
|
|
||
|
wchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n)
|
||
|
{
|
||
|
for (; n != 0; s++, n--)
|
||
|
if (*s == c)
|
||
|
return (wchar_t *)s;
|
||
|
return NULL;
|
||
|
}
|