ft_strlen - gabrielcoelhodacunha-old/42sp-libft GitHub Wiki
Description
Computes the length of the null terminated string s
.
Implementation
size_t ft_strlen(const char *s)
{
size_t len;
len = 0;
while (s[len])
len++;
return (len);
}
Computes the length of the null terminated string s
.
size_t ft_strlen(const char *s)
{
size_t len;
len = 0;
while (s[len])
len++;
return (len);
}