1
Fork 0
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:
Andreas Kling 2020-08-13 20:14:13 +02:00
parent 5099e76ce6
commit b777640fef
2 changed files with 0 additions and 9 deletions

View file

@ -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;