mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:15:07 +00:00
Kernel: Remove strdup() since nothing uses it
This commit is contained in:
parent
5099e76ce6
commit
b777640fef
2 changed files with 0 additions and 9 deletions
|
@ -232,14 +232,6 @@ int strcmp(const char* s1, const char* s2)
|
|||
return *(const u8*)s1 < *(const u8*)s2 ? -1 : 1;
|
||||
}
|
||||
|
||||
char* strdup(const char* str)
|
||||
{
|
||||
size_t len = strlen(str);
|
||||
char* new_str = (char*)kmalloc(len + 1);
|
||||
strcpy(new_str, str);
|
||||
return new_str;
|
||||
}
|
||||
|
||||
int memcmp(const void* v1, const void* v2, size_t n)
|
||||
{
|
||||
auto* s1 = (const u8*)v1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue