slight changes to stackNode struct, void func, etc

This commit is contained in:
Tobias Kachel 2025-12-05 10:41:08 +01:00
parent 73ebc36c05
commit 624a7d8b41
3 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#include <string.h>
t #include <string.h>
#include "stack.h"
#include "bintree.h"

View File

@ -69,7 +69,7 @@ StackNode *pop(StackNode *stack) {
void *top(StackNode *stack) { return stack != NULL ? stack->data : NULL; }
// Clears stack and releases all memory.
StackNode *clearStack(StackNode *stack) {
void *clearStack(StackNode *stack) {
while (stack != NULL) {

View File

@ -13,6 +13,7 @@ typedef struct StackNode {
void *data;
struct StackNode *next;
struct StackNode *prev;
} StackNode;