GCC Code Coverage Report


Directory: ./
File: lib/my/my_swap.c
Date: 2024-06-05 00:36:48
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_swap
4 ** File description:
5 ** Swap the value of two integer (a and b)
6 */
7 /**
8 * @file my_swap.c
9 * @brief The file containing the my_swap function
10 * @author Nicolas TORO
11 */
12
13 #include "my.h"
14
15 1 void my_swap(int *a, int *b)
16 {
17 int c;
18
19 1 c = *a;
20 1 *a = *b;
21 1 *b = c;
22 1 }
23