Advertisement
Gabriel_Rofl

Untitled

Oct 9th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. typedef struct no_pilha{
  2.     struct no_pilha* prox;
  3.     int dado;
  4.     int topo;
  5. }t_pilha;
  6.  
  7. t_pilha* aloca_pilha(){
  8.     t_pilha* ptr = (t_pilha *) malloc(sizeof(t_pilha));
  9.     ptr->topo = NULL;  
  10.     return ptr;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement