1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +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;