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