slight changes to stackNode struct, void func, etc
This commit is contained in:
parent
73ebc36c05
commit
624a7d8b41
@ -1,4 +1,4 @@
|
|||||||
#include <string.h>
|
t #include <string.h>
|
||||||
#include "stack.h"
|
#include "stack.h"
|
||||||
#include "bintree.h"
|
#include "bintree.h"
|
||||||
|
|
||||||
|
|||||||
2
stack.c
2
stack.c
@ -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) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user