summaryrefslogtreecommitdiff
path: root/lib/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string.c')
-rw-r--r--lib/string.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/string.c b/lib/string.c
new file mode 100644
index 0000000..b48ffc0
--- /dev/null
+++ b/lib/string.c
@@ -0,0 +1,13 @@
+#include <string.h>
+
+size_t strlen(char* s)
+{
+ int pos=0;
+
+ while (s[pos]) {
+
+ pos++;
+ }
+
+ return pos;
+}