moved some unused functions, list and put, in deleted folder

This commit is contained in:
hugogogo
2022-03-24 17:04:20 +01:00
parent 60af4e44b0
commit 887657dc07
22 changed files with 57 additions and 119 deletions

24
deleted/ft_lst_find.bak Normal file
View File

@@ -0,0 +1,24 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstfind.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: simplonco <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/23 22:48:47 by simplonco #+# #+# */
/* Updated: 2022/03/23 22:49:16 by simplonco ### ########.fr */
/* */
/* ************************************************************************** */
/*
* find an element with the comp function, and return a pointer to it
*/
#include "libft.h"
t_list *ft_lstfind(t_list *lst, void *to_find, int (*comp)(void*, void *))
{
while (lst && (!comp(to_find, lst->content)))
lst = lst->next;
return (lst);
}