mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibC: Implement enough missing stuff to get bash-5.0 running. :^)
This commit is contained in:
parent
5158bee08c
commit
736e852525
26 changed files with 125 additions and 37 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue