Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __TEST_H__
- #define __TEST_H__
- typedef struct elemento{
- struct elemento* ant;
- int dado;
- }t_ele;
- typedef struct {
- t_ele* topo;
- }t_pilha;
- t_pilha* aloca_pilha();
- t_ele* aloca_elemento(int valor);
- void push(t_pilha* pilha, int valor);
- int pop(t_pilha* pilha, t_ele* elemento);
- int pilha_vazia(t_pilha* pilha);
- int tam_pilha(t_pilha* pilha);
- void libera_pilha(t_pilha* pilha, t_ele* elemento);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement