mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-14 10:59:24 +02:00
LibC: Implement enough missing stuff to get bash-5.0 running. :^)
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 15:49:53 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/736e8525259
@@ -285,5 +285,15 @@ char* strstr(const char* haystack, const char* needle)
|
||||
return const_cast<char*>(haystack);
|
||||
}
|
||||
|
||||
char* strpbrk(const char* s, const char* accept)
|
||||
{
|
||||
while (*s)
|
||||
if(strchr(accept, *s++))
|
||||
return (char*)--s;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user