42_push_swap/ft_strlen.c
Camille Chauvet 3fc423de4a presque
2022-12-06 17:35:45 +01:00

24 lines
1010 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/06 17:28:28 by cchauvet #+# #+# */
/* Updated: 2022/12/06 17:30:36 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include "pushswap.h"
size_t ft_strlen(const char *s)
{
int i;
i = 0;
while (s[i] != '\0')
i++;
return (i);
}