Decoupling Architectural-specific Code (#35)
[lunaix-os.git] / lunaix-os / libs / klibc / string / strcpy.c
index 86032d91ec03dbceab54e2e3ecc5bb14258c19c8..04c85c9784db0f4ccbab8e8d6c27c19a8c4bd1b7 100644 (file)
@@ -1,6 +1,7 @@
 #include <klibc/string.h>
 #include <klibc/string.h>
+#include <lunaix/compiler.h>
 
 
-char*
+char* weak
 strcpy(char* dest, const char* src)
 {
     char c;
 strcpy(char* dest, const char* src)
 {
     char c;
@@ -13,7 +14,7 @@ strcpy(char* dest, const char* src)
     return &dest[i];
 }
 
     return &dest[i];
 }
 
-char*
+char* weak
 strncpy(char* dest, const char* src, unsigned long n)
 {
     char c;
 strncpy(char* dest, const char* src, unsigned long n)
 {
     char c;