1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

LibC: Fix wcsrchr declaration to return a non-const wchar*

This is how the standard specifies it; similarly to the already
correctly declared wcschr function.
This commit is contained in:
Daniel Bertalan 2021-10-16 10:00:05 +02:00 committed by Linus Groh
parent 763a69d46d
commit e6164d35fa
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ wchar_t* wcschr(const wchar_t* str, int c)
}
}
const wchar_t* wcsrchr(const wchar_t* str, wchar_t wc)
wchar_t* wcsrchr(const wchar_t* str, wchar_t wc)
{
wchar_t* last = nullptr;
wchar_t c;

View file

@ -32,7 +32,7 @@ wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t);
int wcscmp(const wchar_t*, const wchar_t*);
int wcsncmp(const wchar_t*, const wchar_t*, size_t);
wchar_t* wcschr(const wchar_t*, int);
const wchar_t* wcsrchr(const wchar_t*, wchar_t);
wchar_t* wcsrchr(const wchar_t*, wchar_t);
wchar_t* wcscat(wchar_t*, const wchar_t*);
wchar_t* wcsncat(wchar_t*, const wchar_t*, size_t);
wchar_t* wcstok(wchar_t*, const wchar_t*, wchar_t**);