This commit is contained in:
Loic Deridder committed 2025-01-16 13:57:52 +01:00
1 parent 687dd72dba
commit 0bf69437bb
2 files changed
+12

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#include "../../libft.h"
int ft_strcmp(const char *s1, const char *s2)
{
while (*s1 && *s2 && (*s1 == *s2))
{
s1++;
s2++;
}
return ((unsigned char) *s1 - (unsigned char) *s2);
}