- The documentation on the header allow u to see on the files where the header is inclued
25 lines
1 KiB
C
25 lines
1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strlen.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/11/07 16:56:24 by rparodi #+# #+# */
|
|
/* Updated: 2025/09/05 16:17:50 by rparodi ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <unistd.h>
|
|
|
|
size_t ft_strlen(const char *s)
|
|
{
|
|
size_t i;
|
|
|
|
i = 0;
|
|
if (!s)
|
|
return (0);
|
|
while (s[i] != '\0')
|
|
i++;
|
|
return (i);
|
|
}
|