forked from freudenreichan/info2Praktikum-DobleSpiel
Compare commits
3
Commits
Krisp
...
624a7d8b41
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
624a7d8b41 | ||
|
|
73ebc36c05 | ||
|
|
ecb5f360e3 |
No files matched your search
@@ -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