Files
UtilLib/ft_strlen.c
T
2025-08-04 13:20:27 +02:00

23 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yantoine <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/07 10:18:42 by yantoine #+# #+# */
/* Updated: 2023/11/09 12:31:17 by yantoine ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_strlen(const char *c)
{
int index;
index = 0;
while (c[index] != 0)
index += 1;
return (index);
}