From 475449dd4b1f3308bac6f72c34d87812216a0738 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 24 Jul 2019 18:57:19 +0200 Subject: exam02 --- .../subjects/6-0-ft_list_remove_if/subject.en.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 exam02/subjects/6-0-ft_list_remove_if/subject.en.txt (limited to 'exam02/subjects/6-0-ft_list_remove_if/subject.en.txt') diff --git a/exam02/subjects/6-0-ft_list_remove_if/subject.en.txt b/exam02/subjects/6-0-ft_list_remove_if/subject.en.txt new file mode 100644 index 0000000..f9b9783 --- /dev/null +++ b/exam02/subjects/6-0-ft_list_remove_if/subject.en.txt @@ -0,0 +1,23 @@ +Assignment name : ft_list_remove_if +Expected files : ft_list_remove_if.c +Allowed functions: free +-------------------------------------------------------------------------------- + +Write a function called ft_list_remove_if that removes from the +passed list any element the data of which is "equal" to the reference data. + +It will be declared as follows : + +void ft_list_remove_if(t_list **begin_list, void *data_ref, int (*cmp)()); + +cmp takes two void* and returns 0 when both parameters are equal. + +You have to use the ft_list.h file, which will contain: + +$>cat ft_list.h +typedef struct s_list +{ + struct s_list *next; + void *data; +} t_list; +$> -- cgit