Gabriel_Rofl

test.h

Oct 9th, 2017
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #ifndef __PILHA_H__
  2. #define __PILHA_H__
  3.  
  4. typedef struct elemento{
  5.     struct elemento* prox;
  6.     int dado;
  7. }t_ele;
  8.  
  9. typedef struct {
  10.     t_ele* topo;
  11. }t_pilha;
  12.  
  13. t_pilha* aloca_pilha();
  14.  
  15.  
  16. void push(t_pilha* pilha, int valor);
  17. int pop(t_pilha* pilha);
  18. int get_topo(t_pilha* pilha);
  19. int pilha_vazia(t_pilha* pilha);
  20. int tam_pilha(t_pilha* pilha);
  21. void print_pilha(t_pilha* pilha)
  22.  
  23.  
  24. #endif
Add Comment
Please, Sign In to add comment