GCC Code Coverage Report


Directory: ./
File: lib/mylist/my_pop_front.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, 2024
3 ** template
4 ** File description:
5 ** The my_pop_front.c
6 */
7 /**
8 * @file my_pop_front.c
9 * @brief The my_pop_front.c
10 * @author Nicolas TORO
11 */
12
13 #include "mylist.h"
14
15 linked_list_t *my_pop_front(linked_list_t **begin)
16 {
17 linked_list_t *tmp = *begin;
18
19 if (*begin == NULL)
20 return NULL;
21 *begin = (*begin)->next;
22 if (*begin != NULL)
23 (*begin)->prev = NULL;
24 return tmp;
25 }
26