tty-solitaire/debug/stack_debug.c
2010-04-22 01:51:51 -03:00

17 lines
304 B
C

#include <stdio.h>
#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;
}