From b436ed76ffe95eb644b4432442eb782521d8ac59 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Sep 2015 18:21:59 +0200 Subject: m misc wchar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/wchar/wcscpy.c | 4 ++-- src/wchar/wcsmove.c | 2 +- src/wchar/wcsspn.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/wchar/wcscpy.c b/src/wchar/wcscpy.c index 37b8ed4..9c1207d 100644 --- a/src/wchar/wcscpy.c +++ b/src/wchar/wcscpy.c @@ -91,7 +91,7 @@ wchar_t* wcsccpy(wchar_t* restrict whither, const wchar_t* restrict whence, wcha * one character passed the last written non-NUL * character. */ -wchar_t* wcswcscpy(wchar_t* restrict whither, const wchar_t* restrict whence, const wchar_t* restrict str) +wchar_t* wcsstrcpy(wchar_t* restrict whither, const wchar_t* restrict whence, const wchar_t* restrict str) { const wchar_t* stop = str == NULL ? NULL : wcsstr(whence, str); size_t n = stop == NULL ? wcslen(whence) : (size_t)(stop - whence); @@ -209,7 +209,7 @@ wchar_t* wcscncpy(wchar_t* restrict whither, const wchar_t* restrict whence, wch * one character passed the last written non-NUL * character. */ -wchar_t* wcswcsncpy(wchar_t* restrict whither, const wchar_t* restrict whence, +wchar_t* wcsstrncpy(wchar_t* restrict whither, const wchar_t* restrict whence, const wchar_t* restrict str, size_t maxlen) { const wchar_t* stop = wcsnstr(whence, str, maxlen); diff --git a/src/wchar/wcsmove.c b/src/wchar/wcsmove.c index bf86928..041d194 100644 --- a/src/wchar/wcsmove.c +++ b/src/wchar/wcsmove.c @@ -93,7 +93,7 @@ wchar_t* wcscmove(wchar_t* whither, const wchar_t* whence, wchar_t c) * one character passed the last written non-NUL * character. */ -wchar_t* wcswcsmove(wchar_t* whither, const wchar_t* whence, const wchar_t* restrict str) +wchar_t* wcsstrmove(wchar_t* whither, const wchar_t* whence, const wchar_t* restrict str) { const wchar_t* stop = str == NULL ? NULL : wcsstr(whence, str); size_t n = stop == NULL ? wcslen(whence) : (size_t)(stop - whence); diff --git a/src/wchar/wcsspn.c b/src/wchar/wcsspn.c index d0ce908..239b863 100644 --- a/src/wchar/wcsspn.c +++ b/src/wchar/wcsspn.c @@ -75,7 +75,7 @@ size_t wcscspn(const wchar_t* string, const wchar_t* stopset) * `string` of a character found in `stopset`. * `NULL` is returned if none is found. */ -wchar_t* wcpbrk(const wchar_t* string, const wchar_t* stopset) +wchar_t* wcspbrk(const wchar_t* string, const wchar_t* stopset) { string += wcscspn(string, stopset); return *string ? string : NULL; -- cgit v1.2.3-70-g09d2