1570af302Sopenharmony_ci#include <wchar.h> 2570af302Sopenharmony_ci 3570af302Sopenharmony_ciwchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n) 4570af302Sopenharmony_ci{ 5570af302Sopenharmony_ci for (; n && *s != c; n--, s++); 6570af302Sopenharmony_ci return n ? (wchar_t *)s : 0; 7570af302Sopenharmony_ci} 8