From a7b8ae658d98c5a5b5c1d93e0d79f7b099b95fee Mon Sep 17 00:00:00 2001 From: actpohabtNS Date: Tue, 24 Aug 2021 22:18:50 +0300 Subject: [PATCH] Fix list_remove 2nd parameter list_remove 2nd parameter should be 'int pos', as desribed in prototype --- courses/cunix/ex07/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/courses/cunix/ex07/readme.md b/courses/cunix/ex07/readme.md index c53c843d..b971e39a 100644 --- a/courses/cunix/ex07/readme.md +++ b/courses/cunix/ex07/readme.md @@ -36,7 +36,7 @@ void list_unshift(node_t **head, void *data); ```c void *list_pop(node_t **head); void *list_shift(node_t **head); -void *list_remove(node_t **head, node_t *ptr); +void *list_remove(node_t **head, int pos); ``` * You can visit an entire list and apply a function fp