summaryrefslogtreecommitdiff
path: root/ft_strncmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strncmp.c')
-rw-r--r--ft_strncmp.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/ft_strncmp.c b/ft_strncmp.c
index d4858dc..437bc6e 100644
--- a/ft_strncmp.c
+++ b/ft_strncmp.c
@@ -30,44 +30,3 @@ int ft_strncmp(const char *s1, const char *s2, size_t n)
}
return (0);
}
-/*
-#include <stdio.h>
-#include <string.h>
-
-int main(void)
-{
- char str1[] = "ABC";
- char str2[] = "ABC";
- char str3[] = "AB";
- char str4[] = "ABA";
- char str5[] = "ABZ";
- char str6[] = "ABJ";
- int size;
-
- printf("############ strncmp ############\n");
- size = 3;
- printf("%d\n", ft_strncmp(str1, str2, size));
- printf("%d\n", strncmp(str1, str2, size));
- size = 0;
- printf("%d\n", ft_strncmp(str1, str1, size));
- printf("%d\n", strncmp(str1, str1, size));
- size = -1;
- printf("%d\n", ft_strncmp(str1, str1, size));
- printf("%d\n", strncmp(str1, str1, size));
- size = 3;
- printf("%d\n", ft_strncmp(str1, str3, size));
- printf("%d\n", strncmp(str1, str3, size));
- size = 3;
- printf("%d\n", ft_strncmp(str4, str5, size));
- printf("%d\n", strncmp(str4, str5, size));
- size = 3;
- printf("%d\n", ft_strncmp(str6, str1, size));
- printf("%d\n", strncmp(str6, str1, size));
- size = 6;
- printf("%d\n", ft_strncmp("test\200", "test\0", size));
- printf("%d\n", strncmp("test\200", "test\0", size));
- size = 4;
- printf("%d\n", ft_strncmp("\201", "A", size));
- printf("%d\n", strncmp("\201", "A", size));
-}
-*/