aboutsummaryrefslogtreecommitdiffstats
path: root/src/wchar/wmemccpy.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/wchar/wmemccpy.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/wchar/wmemccpy.c b/src/wchar/wmemccpy.c
index 498e4db..9e6f684 100644
--- a/src/wchar/wmemccpy.c
+++ b/src/wchar/wmemccpy.c
@@ -45,30 +45,3 @@ wchar_t* wmemccpy(wchar_t* restrict whither, const wchar_t* restrict whence, wch
return r;
}
-
-/**
- * Copy a memory segment to another, possibly overlapping, segment,
- * but stop if a specific byte is encountered.
- *
- * This is a slibc extension added for completeness.
- *
- * @param whither The destination memory segment.
- * @param whence The source memory segment.
- * @param c The character to stop at if encountered.
- * @param size The maximum number of wide characters to copy.
- * @return `NULL` if `c` was not encountered, otherwise
- * the possition of `c` translated to `whither`,
- * that is, the address of `whither` plus the
- * number of copied characters; the address of
- * one character passed the last written character.
- */
-wchar_t* wmemcmove(wchar_t* whither, const wchar_t* whence, wchar_t c, size_t size)
-{
- wchar_t* stop = (wmemchr)(whence, c, size);
- wchar_t* r = NULL;
- if (stop != NULL)
- size = (size_t)(stop - whence), r = whither + size;
- wmemmove(whither, whence, size);
- return r;
-}
-