Files
st/libs/c/src/wmem.c
T
Yanis c98c03de39 Match MSL_C (#8)
* match wstring.c

* match math_api.c, mbstring.c, mem.c and mem_funcs.c

* more progress

* build issues

* fix non-matching issues

* reorganise files

* match fdlibm (+ libc progress)

* fix jp build

* solved some non-matchings and progress

* removed types.h usage in libc

* match data and add missing delinks for jp
2025-12-17 14:08:53 +01:00

19 lines
374 B
C

#include <mem.h>
wchar_t *wmemcpy(wchar_t *pDest, const wchar_t *pSrc, size_t num) {
return (wchar_t *) memcpy(pDest, pSrc, num * sizeof(wchar_t));
}
wchar_t *wmemchr(const wchar_t *pSrc, wchar_t val, size_t num) {
while (num != 0) {
if (*pSrc == val) {
return (wchar_t *) pSrc;
}
pSrc++;
num--;
}
return 0;
}