aboutsummaryrefslogtreecommitdiffstats
path: root/ft_strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strlen.c')
-rw-r--r--ft_strlen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ft_strlen.c b/ft_strlen.c
new file mode 100644
index 0000000..06b0aae
--- /dev/null
+++ b/ft_strlen.c
@@ -0,0 +1,12 @@
+#include "libft.h"
+
+size_t
+ft_strlen (const char *s)
+{
+ size_t i;
+
+ i = 0;
+ while (s[i])
+ i++;
+ return (i);
+}