@@ -10,6 +10,15 @@
// Pushes data as pointer onto the stack.
StackNode *push(StackNode *stack, void *data)
{
//Speicher reservieren
StackNode *newNode = malloc(sizeof(StackNode));
if (!newNode)
return stack;
newNode->data = data;
newNode->next = stack;
return newNode;
}
The note is not visible to the blocked user.