23 lines
1018 B
C
Executable File
23 lines
1018 B
C
Executable File
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strlen.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/10/30 12:34:41 by tomoron #+# #+# */
|
|
/* Updated: 2024/02/08 17:54:36 by tomoron ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include "libft.h"
|
|
|
|
size_t ft_strlen(const char *str)
|
|
{
|
|
unsigned int n;
|
|
|
|
n = 0;
|
|
while (str && str[n])
|
|
n++;
|
|
return (n);
|
|
}
|