Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. void poly_free(poly **P) {
  2.     node *temp;
  3.     temp = (*P)->terms;
  4.  
  5.     while(temp != NULL) {
  6.         node *temp2 = temp;
  7.         free(temp2);
  8.         temp = temp->next;
  9.     }
  10.     (*P) = NULL;
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement