repositories
/
Project_algorithmic_C.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Implement :
[Project_algorithmic_C.git]
/
lib
/
utils.c
Commit
Line
Data
480acfeb
JB
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
}