struktur StackNode

This commit is contained in:
bernardjo104126 committed 2026-11-19 14:30:33 +01:00
1 parent 027a7e1bec
commit 8cdc006a6b
1 file changed
+9
+9
View File
@@ -9,6 +9,15 @@ The latest element is taken from the stack. */
//TODO: passenden Datentyp als struct anlegen //TODO: passenden Datentyp als struct anlegen
//typedef int Node;
typedef struct {
int value;
StackNode* next;
StackNode* prev;
}StackNode;
// Pushes data as pointer onto the stack. // Pushes data as pointer onto the stack.
StackNode *push(StackNode *stack, void *data); StackNode *push(StackNode *stack, void *data);