unleashbear

Untitled

Feb 8th, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. bool unload(void)
  2. {
  3. // TODO
  4. bool suc = false ;
  5. for (int i = 0 ; i < N ; i ++ )
  6. {
  7. while (table[i]->next != NULL)
  8. {
  9. node *F = table[i]-> next ;
  10. free(table[i]) ;
  11. table[i] = F ;
  12. }
  13. suc = true ;
  14.  
  15. }
  16.  
  17. if (suc == true)
  18. {
  19. return true ;
  20. }
  21. else
  22. {
  23. return false;
  24. }
  25.  
  26.  
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment