Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* definice fce */
- void stackInit(t_stack *s){
- s=malloc(sizeof(struct t_stack));
- s->top=-1;
- if(s!=NULL)
- printf("guuuuuuuu!!!! %d\n",s->top); // tohle se vypise - v poradku
- }
- /* volani fce */
- t_stack* s=NULL;
- stackInit(s);
- if(s == NULL)
- printf("pruuuuuser!!\n"); // Tohle se vypise taky, i kdyz by vubec nemelo...
- // Jako by se alokovalo jen na zasobniku... :(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement