This commit is contained in:
Arkitu 2026-01-15 21:20:34 +01:00
parent 078f1b96c0
commit 4914e4b0b4

15
tp7/exo8.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdbool.h>
#include "exo3.c"
ilc creer_pile() {
return creer_ilc();
}
void empiler_pile(ilc* p, int x) {
inserer_tete_ilc(p, x);
}
int depiler_pile(ilc* p) {
return retirer_tete_ilc(p);
}
bool est_vide_pile(ilc p) {
return tete_ilc(p) == NULL;
}