aboutsummaryrefslogtreecommitdiff
path: root/src/algo/ft_lfind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/algo/ft_lfind.c')
-rw-r--r--src/algo/ft_lfind.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/algo/ft_lfind.c b/src/algo/ft_lfind.c
deleted file mode 100644
index 8538f50..0000000
--- a/src/algo/ft_lfind.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_lfind.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/02/10 05:49:19 by cacharle #+# #+# */
-/* Updated: 2020/02/10 05:58:19 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft_algo.h"
-
-void *ft_lfind(const void *base, size_t *nelp, size_t width,
- t_ftsearch_const *consts)
-{
- size_t i;
-
- i = 0;
- while (i < *nelp)
- {
- if ((consts->compar)(consts->key, base + i * width) == 0)
- return ((void*)base + i * width);
- i++;
- }
- return (NULL);
-}