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:
parent
d5b7c28a5e
commit
3fc2c4866f
3 changed files with 201 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue