From 5164b94cfbcbad756b10e8a5e39b67ef52346f5e Mon Sep 17 00:00:00 2001 From: PAILLE Kyriann <kyriann.paille9@etu.univ-lorraine.fr> Date: Sun, 8 Jan 2023 23:52:13 +0000 Subject: [PATCH] Upload New File --- fichiers stack/stack.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 fichiers stack/stack.c diff --git a/fichiers stack/stack.c b/fichiers stack/stack.c new file mode 100644 index 0000000..c5cd04f --- /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; +// } -- GitLab