aboutsummaryrefslogtreecommitdiffstats
path: root/ft_strnstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strnstr.c')
-rw-r--r--ft_strnstr.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/ft_strnstr.c b/ft_strnstr.c
deleted file mode 100644
index 23ac891..0000000
--- a/ft_strnstr.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "libft.h"
-
-char *
-ft_strnstr (const char *big, const char *little, size_t len)
-{
- size_t llen;
-
- if (*little == '\0')
- return ((char *)big);
- llen = ft_strlen (little);
- while (*big && len >= llen)
- {
- if (ft_memcmp (big, little, llen) == 0)
- return ((char *)big);
- big++;
- len--;
- }
- return (NULL);
-}