repositories
/
Project_algorithmic_C.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
White space cleanup
[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
}