1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibC: Stub and test strlcpy

This commit is contained in:
Ben Wiederhake 2020-08-23 11:31:21 +02:00 committed by Andreas Kling
parent d5b7c28a5e
commit 3fc2c4866f
3 changed files with 201 additions and 0 deletions

View file

@ -214,6 +214,14 @@ char* strncpy(char* dest, const char* src, size_t n)
return dest;
}
size_t strlcpy(char* dest, const char* src, size_t n)
{
(void)dest;
(void)src;
(void)n;
return 42; // TODO
}
char* strchr(const char* str, int c)
{
char ch = c;