slight changes to stackNode struct, void func, etc
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#include <string.h>
|
t #include <string.h>
|
||||||
#include "stack.h"
|
#include "stack.h"
|
||||||
#include "bintree.h"
|
#include "bintree.h"
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ StackNode *pop(StackNode *stack) {
|
|||||||
void *top(StackNode *stack) { return stack != NULL ? stack->data : NULL; }
|
void *top(StackNode *stack) { return stack != NULL ? stack->data : NULL; }
|
||||||
|
|
||||||
// Clears stack and releases all memory.
|
// Clears stack and releases all memory.
|
||||||
StackNode *clearStack(StackNode *stack) {
|
void *clearStack(StackNode *stack) {
|
||||||
|
|
||||||
while (stack != NULL) {
|
while (stack != NULL) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user