Created
April 3, 2011 12:34
-
-
Save note/900399 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Zwalnia wszyskie bloki pamieci oraz sama liste. | |
*/ | |
void dispose_list(struct list * l){ | |
struct block * it = l->first, *tmp; | |
while(it != NULL){ | |
tmp = it->next; | |
delete_block(it, l); | |
it = tmp; | |
} | |
free(l); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment