aboutsummaryrefslogtreecommitdiffstats
path: root/src/wchar
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar')
-rw-r--r--src/wchar/new.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/wchar/new.c b/src/wchar/new.c
index 3f76087..f1ee58c 100644
--- a/src/wchar/new.c
+++ b/src/wchar/new.c
@@ -334,3 +334,25 @@ wchar_t* (wcsnprcbrk)(const wchar_t* string, const wchar_t* skipset, size_t maxl
return found ? string : NULL;
}
+wchar_t* wmemmemmove(wchar_t* whither, const wchar_t* whence, const wchar_t* restrict str,
+ size_t strsize, size_t size) /* slibc: completeness */
+{
+ wchar_t* stop = (wmemmem)(whence, size, str, strsize);
+ wchar_t* r = NULL;
+ if (stop != NULL)
+ size = (size_t)(stop - whence), r = whither + size;
+ wmemmove(whither, whence, size);
+ return r;
+}
+
+char* wmemmemcpy(wchar_t* whither, const wchar_t* whence, const wchar_t* restrict str,
+ size_t strsize, size_t size) /* slibc: completeness */
+{
+ wchar_t* stop = (wmemmem)(whence, size, str, strsize);
+ wchar_t* r = NULL;
+ if (stop != NULL)
+ size = (size_t)(stop - whence), r = whither + size;
+ wmemcpy(whither, whence, size);
+ return r;
+}
+