Decoupling Architectural-specific Code (#35)
[lunaix-os.git] / lunaix-os / libs / klibc / string / strlen.c
index 7a9c538b6890881d0be55ea22a6521c725d84141..a1aec5ad4f33f089f52341a34efe1ddbcf1b8a6a 100644 (file)
@@ -1,6 +1,7 @@
 #include <klibc/string.h>
+#include <lunaix/compiler.h>
 
-unsigned long
+unsigned long weak
 strlen(const char* str)
 {
     unsigned long len = 0;
@@ -9,7 +10,7 @@ strlen(const char* str)
     return len;
 }
 
-unsigned long
+unsigned long weak
 strnlen(const char* str, unsigned long max_len)
 {
     unsigned long len = 0;