tty-solitaire/debug/stack_debug.c

18 lines
328 B
C
Raw Normal View History

#include <stdio.h>
2010-04-10 16:55:29 +00:00
#include "card_debug.h"
2010-04-10 16:49:19 +00:00
#include "stack_debug.h"
void print_stack(struct stack *stack) {
if (empty(stack)) {
printf("Empty stack\n");
} else {
struct stack *iterator = stack;
while (iterator != NULL) {
print_card(iterator->card);
iterator = iterator->next;
}
}
return;
}