#include <stdio.h>

int	ft_strlen(char *str)
{
	int	i;

	i = 0;
	while (str[i])
	{
		i++;
	}
	return (i);
}

int	main(void)
{
	char	*str;
	int		size;

	str = "Hello";
	size = ft_strlen(str);
	printf("La longueur de la chaine (%s) est de (%d) caractere", str, size);
	printf("\n");
	return (0);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: