aboutsummaryrefslogtreecommitdiffstats
path: root/ft_strncmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strncmp.c')
-rw-r--r--ft_strncmp.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/ft_strncmp.c b/ft_strncmp.c
deleted file mode 100644
index 2fa1099..0000000
--- a/ft_strncmp.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "libft.h"
-
-int
-ft_strncmp (const char *s1, const char *s2, size_t n)
-{
- while (n--)
- {
- if ((unsigned char)*s1 != (unsigned char)*s2)
- return ((unsigned char)*s1 - (unsigned char)*s2);
- if (*s1 == '\0')
- return (0);
- s1++;
- s2++;
- }
- return (0);
-}