Advertisement
Gabriel_Rofl

test.h

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