repositories
/
TD_C.git
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
BuildSystem: Sync more exercices with the latest one
[TD_C.git]
/
TP_13
/
exo1
/
lib
/
utils.c
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
1
#include <stdio.h>
2
3
#include "utils.h"
4
5
void swap_int(int* v1, int* v2) {
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
}