mirror of
https://github.com/zeldaret/st
synced 2026-08-26 16:06:45 -04:00
c98c03de39
* 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
19 lines
374 B
C
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;
|
|
}
|