repositories
/
Algorithmic_C.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98c1350
)
Remove an unused function parameter.
author
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Wed, 1 Mar 2017 22:16:57 +0000
(23:16 +0100)
committer
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Wed, 1 Mar 2017 22:16:57 +0000
(23:16 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP2/exo1/exo1.c
patch
|
blob
|
blame
|
history
diff --git
a/TP2/exo1/exo1.c
b/TP2/exo1/exo1.c
index 27ff6b997cac7b421d1469885d74ac7378acef2d..25d6c99922febc0c77a97c4a241a3892fc642f50 100644
(file)
--- a/
TP2/exo1/exo1.c
+++ b/
TP2/exo1/exo1.c
@@
-1,6
+1,6
@@
#include <stdio.h>
-void permuter (int T[], int
n, int
i1, int i2) {
+void permuter (int T[], int i1, int i2) {
int tmp = T[i1];
T[i1] = T[i2];
T[i2] = tmp;
@@
-20,7
+20,7
@@
void SelecEch(int T[], int n) {
int imin, d = 0;
while (d < n-1) {
imin = i_min(T, n, d);
- permuter(T,
n,
d, imin);
+ permuter(T, d, imin);
d++;
}
}