1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:47:34 +00:00

LibC: Implement stpcpy

For better code clarity, also reformatted how strcpy increments
pointers.
This commit is contained in:
Dominika Liberda 2023-06-11 06:00:11 +02:00 committed by Linus Groh
parent 8a43f5a64a
commit 75307803a2
2 changed files with 15 additions and 2 deletions

View file

@ -37,6 +37,7 @@ __attribute__((malloc)) char* strdup(char const*);
__attribute__((malloc)) char* strndup(char const*, size_t);
char* strcpy(char* dest, char const* src);
char* stpcpy(char* dest, char const* src);
char* strncpy(char* dest, char const* src, size_t);
__attribute__((warn_unused_result)) size_t strlcpy(char* dest, char const* src, size_t);