mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibC: Implement wcspbrk
This commit is contained in:
parent
c80b65b827
commit
1b078f87b7
3 changed files with 39 additions and 0 deletions
|
@ -344,4 +344,15 @@ int mbsinit(const mbstate_t* state)
|
|||
|
||||
return 1;
|
||||
}
|
||||
|
||||
wchar_t* wcspbrk(const wchar_t* wcs, const wchar_t* accept)
|
||||
{
|
||||
for (const wchar_t* cur = accept; *cur; cur++) {
|
||||
wchar_t* res = wcschr(wcs, *cur);
|
||||
if (res)
|
||||
return res;
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue