stack und teststack nicht final

This commit is contained in:
2025-12-09 14:22:29 +01:00
parent c325131503
commit 95af97bef7
3 changed files with 130 additions and 4 deletions
+7
View File
@@ -8,6 +8,13 @@ The latest element is taken from the stack. */
#include <stdlib.h>
//TODO: passenden Datentyp als struct anlegen
typedef struct
{
void *data;
struct StackNode *next;
struct StackNode *prev;
}StackNode;
// Pushes data as pointer onto the stack.
StackNode *push(StackNode *stack, void *data);