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 |