tp7 exo8
This commit is contained in:
parent
078f1b96c0
commit
4914e4b0b4
15
tp7/exo8.c
Normal file
15
tp7/exo8.c
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user