aboutsummaryrefslogtreecommitdiff
path: root/src/str/ft_strnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/str/ft_strnlen.c')
-rw-r--r--src/str/ft_strnlen.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/str/ft_strnlen.c b/src/str/ft_strnlen.c
deleted file mode 100644
index 5e1569c..0000000
--- a/src/str/ft_strnlen.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_strnlen.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/02/10 05:21:04 by cacharle #+# #+# */
-/* Updated: 2020/02/10 05:23:23 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft_str.h"
-
-/*
-** wrong implementation since it scans beyond maxlen
-*/
-
-size_t ft_strnlen(const char *s, size_t maxlen)
-{
- size_t len;
-
- len = ft_strlen(s);
- return (len > maxlen ? maxlen : len);
-}