diff --git a/SAE2 b/SAE2 index 41f09ef..fce579e 100755 Binary files a/SAE2 and b/SAE2 differ diff --git a/obj/structures.o b/obj/structures.o index e9418fb..b014679 100644 Binary files a/obj/structures.o and b/obj/structures.o differ diff --git a/srcs/structures.c b/srcs/structures.c index 1657646..91dc449 100644 --- a/srcs/structures.c +++ b/srcs/structures.c @@ -195,14 +195,24 @@ int nombrePred(char travaux[], Precedence prec[], int tlog) return nbPred; } +int max(int a, int b) +{ + if (a > b) + return (a); + else + return (b); +} + /*--------------informations------------*/ // Retourne une liste des successeurs pour un travail donne Liste lstSucc(char travaux[], Precedence prec[], int tlog) { trace("lstSucc"); - Liste succ = newListe(); int i; + Liste succ; + + succ = newListe(); for (i=0; itache, nom) == 0) return tabTache[i]; return (NULL);