From 73c2b00a10c5786ddeeacc915e233fd4df1c9321 Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Sat, 11 Oct 2025 22:19:00 +0200 Subject: fix: evalexpr & tinyprintf contenaient toute la piscine --- rushs/tinyprintf/stack/stack.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 rushs/tinyprintf/stack/stack.c (limited to 'rushs/tinyprintf/stack/stack.c') diff --git a/rushs/tinyprintf/stack/stack.c b/rushs/tinyprintf/stack/stack.c deleted file mode 100644 index 0498abc..0000000 --- a/rushs/tinyprintf/stack/stack.c +++ /dev/null @@ -1,30 +0,0 @@ -#include "stack.h" - -#include - -struct stack *stack_push(struct stack *s, int e) -{ - struct stack *new = malloc(sizeof(struct stack)); - new->data = e; - new->next = NULL; - - new->next = s; - return new; -} - -struct stack *stack_pop(struct stack *s) -{ - if (s == NULL) - { - return NULL; - } - - struct stack *res = s->next; - free(s); - return res; -} - -int stack_peek(struct stack *s) -{ - return s->data; -} -- cgit v1.2.3