repositories
/
TD_C.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Move callback functions into the same file
[TD_C.git]
/
TP_13
/
exo1
/
lib
/
utils.c
Commit
Line
Data
475ee86d
JB
1
#include <stdio.h>
2
33b9c646
JB
3
#include "utils.h"
4
0139cafd
5
void swap_int(int* v1, int* v2) {
33b9c646
JB
6
int tmp = *v1;
7
*v1 = *v2;
8
*v2 = tmp;
9
}
10
11
void swap_ptr(void* v1, void* v2) {
12
void* tmp = v1;
13
v1 = v2;
14
v2 = tmp;
15
}