#include <stdio.h>
#include<string.h>

int	ft_strcmp(char *s1, char *s2)
{
	int	index;

	index = 0;
	while (s1[index] != '\0' && s2[index] != '\0')
	{
		if (s1[index] != s2[index])
		{
			return (s1[index] - s2[index]);
		} else {
		    return 1;
		}
		index++;
	}
	return (0);
}
int main() {
    printf("%d\n", ft_strcmp("hh", "hh0"));
     printf("%d", strcmp("hh", "hh0"));
    return 0;
}

Embed on website

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