Add the basic code structure and build system
[Project_algorithmic_C.git] / lib / utils.c
1 #include "utils.h"
2
3 void swap_int(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 }