tty-solitaire/debug/stack_debug.c
Murilo Soares Pereira aca1ceffe7 Fixed failing build.
2010-04-22 01:52:06 -03:00

18 lines
328 B
C

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