repositories
/
Algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TP5: More code cleanups
[Algorithmic_C.git]
/
TP5
/
exo4
/
liste_chainee.c
diff --git
a/TP5/exo4/liste_chainee.c
b/TP5/exo4/liste_chainee.c
index c46f1491b2e97acc97b327ae933a3684cf0ef51e..7d550819392e5824b797f24f78b988e38c912710 100644
(file)
--- a/
TP5/exo4/liste_chainee.c
+++ b/
TP5/exo4/liste_chainee.c
@@
-42,10
+42,7
@@
int longueur_iter(Liste L)
{
int longueur = 0;
- if (!L)
- return longueur;
-
- while ( L->suivant != NULL)
+ while (L->suivant != NULL)
{
L = L->suivant;
longueur++;