diff options
| author | yctct <yctct@yctct.com> | 2026-02-05 12:18:33 +0100 |
|---|---|---|
| committer | yctct <yctct@yctct.com> | 2026-02-05 12:18:33 +0100 |
| commit | 472b8f20c0f74d20dbb434abce10ee86054b9975 (patch) | |
| tree | 95625c0ba5a7f999c9add7f9bd55bb0f0b4dc173 /ft_strncmp.c | |
| parent | 8403fab94b17bc63bc193037c8777b9074707287 (diff) | |
Diffstat (limited to 'ft_strncmp.c')
| -rw-r--r-- | ft_strncmp.c | 41 |
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)); -} -*/ |
