aboutsummaryrefslogtreecommitdiff
path: root/exam02/subjects/6-0-ft_list_remove_if/subject.en.txt
diff options
context:
space:
mode:
Diffstat (limited to 'exam02/subjects/6-0-ft_list_remove_if/subject.en.txt')
-rw-r--r--exam02/subjects/6-0-ft_list_remove_if/subject.en.txt23
1 files changed, 23 insertions, 0 deletions
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;
+$>