23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strlen.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/09/26 12:03:59 by cchauvet #+# #+# */
|
|
/* Updated: 2022/09/27 09:02:11 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include <stddef.h>
|
|
|
|
size_t ft_strlen(const char *s)
|
|
{
|
|
size_t length;
|
|
|
|
length = 0;
|
|
while (s[length])
|
|
length++;
|
|
return (length);
|
|
}
|