diff options
Diffstat (limited to 'functions_reference')
| -rw-r--r-- | functions_reference/ref_ft_atoi_base.c | 12 | ||||
| -rw-r--r-- | functions_reference/ref_ft_list_push_front.c | 12 | ||||
| -rw-r--r-- | functions_reference/ref_ft_list_remove_if.c | 16 | ||||
| -rw-r--r-- | functions_reference/ref_ft_list_size.c | 12 |
4 files changed, 50 insertions, 2 deletions
diff --git a/functions_reference/ref_ft_atoi_base.c b/functions_reference/ref_ft_atoi_base.c index d668254..6bd7052 100644 --- a/functions_reference/ref_ft_atoi_base.c +++ b/functions_reference/ref_ft_atoi_base.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ref_ft_atoi_base.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/08 03:20:16 by cacharle #+# #+# */ +/* Updated: 2020/02/08 03:20:18 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include <ctype.h> #include "libasm_test.h" diff --git a/functions_reference/ref_ft_list_push_front.c b/functions_reference/ref_ft_list_push_front.c index 22ca4a9..78b0877 100644 --- a/functions_reference/ref_ft_list_push_front.c +++ b/functions_reference/ref_ft_list_push_front.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ref_ft_list_push_front.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/08 03:20:23 by cacharle #+# #+# */ +/* Updated: 2020/02/08 03:20:24 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "libasm_test.h" void diff --git a/functions_reference/ref_ft_list_remove_if.c b/functions_reference/ref_ft_list_remove_if.c index 8b55da1..c99cbea 100644 --- a/functions_reference/ref_ft_list_remove_if.c +++ b/functions_reference/ref_ft_list_remove_if.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ref_ft_list_remove_if.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/08 03:20:03 by cacharle #+# #+# */ +/* Updated: 2020/02/08 20:02:25 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "libasm_test.h" void @@ -8,13 +20,13 @@ ref_ft_list_remove_if(t_list **begin_list, void *data_ref, if (begin_list == NULL || *begin_list == NULL) return ; - if (cmp(&(*begin_list)->val, data_ref) != 0) + if (cmp((*begin_list)->data, data_ref) != 0) { ref_ft_list_remove_if(&(*begin_list)->next, data_ref, cmp, free_fct); return ; } saved_next = (*begin_list)->next; - free_fct((*begin_list)->val); + free_fct((*begin_list)->data); free(*begin_list); *begin_list = saved_next; ref_ft_list_remove_if(begin_list, data_ref, cmp, free_fct); diff --git a/functions_reference/ref_ft_list_size.c b/functions_reference/ref_ft_list_size.c index d3e7583..c6348ba 100644 --- a/functions_reference/ref_ft_list_size.c +++ b/functions_reference/ref_ft_list_size.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ref_ft_list_size.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/08 03:20:11 by cacharle #+# #+# */ +/* Updated: 2020/02/08 03:20:12 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include "libasm_test.h" int |
