added bgoulard lib + made lib sources in their own directory in build/ for readability

This commit is contained in:
B.Goulard 2024-11-01 00:00:14 +01:00
parent 83cc8419a0
commit 0a390934d6
457 changed files with 21807 additions and 61 deletions

View file

@ -0,0 +1,26 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_pair_destroy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/23 23:04:56 by bgoulard #+# #+# */
/* Updated: 2024/07/06 17:13:49 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_defs.h"
#include "ft_pair_types.h"
#include "ft_string.h"
void ft_pair_destroy(t_pair **pair, t_data_apply del_f, t_data_apply del_s)
{
if (!pair)
return ;
if (del_f)
del_f((*pair)->first);
if (del_s)
del_s((*pair)->second);
ft_free((void **)pair);
}