BuildSystem: Sync more exercices with the latest one
[TD_C.git] / TP_13 / exo1 / lib / utils.c
... / ...
CommitLineData
1#include <stdio.h>
2
3#include "utils.h"
4
5void swap_int(int* v1, int* v2) {
6 int tmp = *v1;
7 *v1 = *v2;
8 *v2 = tmp;
9}
10
11void swap_ptr(void* v1, void* v2) {
12 void* tmp = v1;
13 v1 = v2;
14 v2 = tmp;
15}