added list_del_current and network_receive_chan function
[my-code/api.git] / list / list.c
index 895cf26..664dd00 100644 (file)
@@ -58,6 +58,11 @@ int list_del_element(t_list *list,t_list_element *element) {
   return L_SUCCESS;
 }
 
+int list_del_current(t_list *list) {
+
+  return(list_del_element(list,list->current));
+}
+
 int list_destroy(t_list *list) {
 
   if(list->start==NULL) {