#include <stdio.h>

int	ft_strlen(char *str)
{
	int	len;

	len = 0;
	while (str[len] != '\0')
	{
		len++;
	}
	return (len);
}

int	main(void)
{
	char	str[] = "Hello!";
	int	len;

	len = ft_strlen(str);
	printf("str : %s\nlen : %d\n", str, len);
	return (0);
}

Embed on website

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