diff --git a/fichiers stack/stack.c b/fichiers stack/stack.c new file mode 100644 index 0000000000000000000000000000000000000000..c5cd04f33473b3857a5442261de3a98f46dc79d1 --- /dev/null +++ b/fichiers stack/stack.c @@ -0,0 +1,34 @@ +//#include "stack.h" +//#include <string.h> /* strdup */ +//#include <stdio.h> /* printf */ +//#include <stdlib.h> /* malloc, free */ +//#include <stdbool.h> + +// les fonctions ne marchent pas j'ai donc mis en commentaire pour laisser la compilation possible + +// const empty_stack = false; + +// bool StackIsEmpty(stack *s) +// { +// return s == NULL; +// } + +// stack StackPush(stack s) { +// stack *new_s = malloc(sizeof(stack)); +// new_s-> +// return +// } + + +// stack stackHead(stack *s) +// { stack neww_s; +// neww_s = LocationPrint(loc); +// LocationDelete(s); +// return new_s; +// } + +// stack stackPop(stack *s) +// { +// stack old_s = stackHead(s); +// return *s; +// }