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 | 1 | void my_swap(int *a, int *b) | |
9 | { | ||
10 | int c; | ||
11 | |||
12 | 1 | c = *a; | |
13 | 1 | *a = *b; | |
14 | 1 | *b = c; | |
15 | 1 | } | |
16 |