24 lines
1010 B
C
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);
|
|
}
|