piscine-timo-moulinette/c09/ex01/srcs/ft_strcmp_test.c

17 lines
296 B
C

#include <stdio.h>
#define STR1 "hellb"
#define STR2 "hello"
int main(void)
{
int result;
printf("'%s' VS '%s'\n", STR1, STR2);
result = ft_strcmp(STR1, STR2);
if(!result)
printf("Strings are the same (0)\n");
else
printf("Strings are different (offset=%d)\n", result);
return (0);
}