42_C_PISCINE/Test/c03/ex01/main.c

26 lines
353 B
C
Raw Permalink Normal View History

2023-05-17 12:45:25 -04:00
#include <stdio.h>
#include <string.h>
int main()
{
char src1[] = "dddd";
char dest1[8] = "ddde";
int result1;
result1 = strncmp(dest1, src1, 4);
printf("%d", result1);
printf("\n");
char src2[] = "dddd";
char dest2[8] = "ddde";
int result2;
result2 = ft_strncmp(dest2, src2, 4);
printf("%d", result2);
return 0;
}