mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:35:07 +00:00
Fix busted display of tty names in /proc/summary.
This commit is contained in:
parent
a8f36f72a8
commit
d980ddc745
4 changed files with 17 additions and 2 deletions
|
@ -24,6 +24,17 @@ void* memset(void* dest, BYTE c, DWORD n)
|
|||
return dest;
|
||||
}
|
||||
|
||||
char* strrchr(const char* str, int ch)
|
||||
{
|
||||
char *last = nullptr;
|
||||
char c;
|
||||
for (; (c = *str); ++str) {
|
||||
if (c == ch)
|
||||
last = (char*)str;
|
||||
}
|
||||
return last;
|
||||
}
|
||||
|
||||
DWORD strlen(const char* str)
|
||||
{
|
||||
DWORD len = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue