21 lines
420 B
C
21 lines
420 B
C
#ifndef STACK_H
|
|
#define STACK_H
|
|
|
|
#include "card.h"
|
|
|
|
struct stack {
|
|
struct card *card;
|
|
struct stack *next;
|
|
};
|
|
|
|
void allocate_stack(struct stack **);
|
|
void initialize_stack(struct stack *);
|
|
void delete_stack(struct stack *);
|
|
bool empty(struct stack *);
|
|
int length(struct stack *);
|
|
void push(struct stack **, struct card *);
|
|
struct stack *pop(struct stack **);
|
|
void move_card(struct stack **, struct stack **);
|
|
|
|
#endif
|