From 0a9ed0f9b84247b0dda23500b7ab301a1238736b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 17 Nov 2015 06:57:59 +0100 Subject: m + split wchar/*.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/wchar/wmemccpy.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/wchar/wmemccpy.c') 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; -} - -- cgit v1.2.3-70-g09d2