Facebook
From Hot Leech, 9 Years ago, written in C.
Embed
Download Paste or View Raw
Hits: 499
  1. void destroy(){
  2.         top1 = top;
  3.  
  4.         while(top1 != NULL){
  5.                 top1 = top->ptr;
  6.                 free(top);
  7.                 top = top1;
  8.                 top1 = top1->ptr;
  9.         }
  10.         free(top1);
  11.         top = NULL;
  12.  
  13.         printf("\n Usunieto stos");
  14.         count = 0;
  15. }