tty-solitaire/lib/stack.h
2011-02-20 18:45:15 -03:00

22 lines
402 B
C

#ifndef STACK_H
#define STACK_H
#include "card.h"
struct stack {
struct card *card;
struct stack *next;
};
extern const char *program_name;
void allocate_stack(struct stack **);
void initialize_stack(struct stack *);
void free_stack(struct stack *);
bool empty(struct stack *);
int length(struct stack *);
void push(struct stack **, struct card *);
struct stack *pop(struct stack **);
#endif