GCC Code Coverage Report


Directory: ./
File: lib/mylist/my_concat_list.c
Date: 2024-06-05 02:24:39
Exec Total Coverage
Lines: 0 8 0.0%
Functions: 0 1 0.0%
Branches: 0 4 0.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_concat_list
4 ** File description:
5 ** Concatenates two linked lists
6 */
7
8 #include "mylist.h"
9
10 void my_concat_list(linked_list_t **begin1, linked_list_t *begin2)
11 {
12 linked_list_t *tmp = *begin1;
13
14 if (*begin1 == NULL) {
15 *begin1 = begin2;
16 return;
17 }
18 for (; tmp->next != NULL; tmp = tmp->next);
19 tmp->next = begin2;
20 begin2->prev = tmp;
21 }
22