aboutsummaryrefslogtreecommitdiff
path: root/ft_strlen.c
blob: 9568fa252b3ac7fb91b1feb5bab4753bcbe2a6d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <string.h>

size_t ft_strlen(const char *s)
{
    size_t  counter;

    counter = 0;
    while (s[counter])
        counter++;
    return (counter);
}