From 472b8f20c0f74d20dbb434abce10ee86054b9975 Mon Sep 17 00:00:00 2001 From: yctct Date: Thu, 5 Feb 2026 12:18:33 +0100 Subject: Remove tests --- ft_strncmp.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'ft_strncmp.c') 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 -#include - -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)); -} -*/ -- cgit v1.2.3