lib: c: implement strcpy and strncpy

This commit is contained in:
2026-03-21 10:37:30 +00:00
parent 766411d983
commit 9148349f44
2 changed files with 29 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ extern size_t strlen(const char *s);
extern int strcmp(const char *s1, const char *s2);
extern int strncmp(const char *s1, const char *s2, unsigned long n);
extern int strcpy(const char *s1, const char *s2);
extern int strncpy(const char *s1, const char *s2, unsigned long n);
extern void *memset(void *str, int c, size_t n);
extern void *memcpy(void *dst, const void *src, size_t len);