aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-02 18:21:59 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-02 18:21:59 +0200
commitb436ed76ffe95eb644b4432442eb782521d8ac59 (patch)
treedc9b41b6cfd8acb473c54e75ef80ba955ea26bde /src
parentstpbrk => strpbrk (diff)
downloadslibc-b436ed76ffe95eb644b4432442eb782521d8ac59.tar.gz
slibc-b436ed76ffe95eb644b4432442eb782521d8ac59.tar.bz2
slibc-b436ed76ffe95eb644b4432442eb782521d8ac59.tar.xz
m misc wchar
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/wchar/wcscpy.c4
-rw-r--r--src/wchar/wcsmove.c2
-rw-r--r--src/wchar/wcsspn.c2
3 files changed, 4 insertions, 4 deletions
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;