c48206fed5be5edc6f7f4eab98eb383f1c1b5545
[TD_C.git] / TP_13 / exo1 / lib / utils.c
1 #include "utils.h"
2
3 void swap_int_ptr(int* v1, int* v2) {
4 int tmp = *v1;
5 *v1 = *v2;
6 *v2 = tmp;
7 }
8
9 void swap_ptr(void* v1, void* v2) {
10 void* tmp = v1;
11 v1 = v2;
12 v2 = tmp;
13 }