StackNode als struct angelegt

This commit is contained in:
Niklas Kegelmann 2025-12-01 14:38:49 +01:00
parent 4d9dae4bf4
commit 6f46bc1f49

View File

@ -8,6 +8,11 @@ The latest element is taken from the stack. */
#include <stdlib.h>
//TODO: passenden Datentyp als struct anlegen
typedef struct StackNode
{
void *data;
struct StackNode *next;
} StackNode;
// Pushes data as pointer onto the stack.
StackNode *push(StackNode *stack, void *data);