diff options
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -41,3 +41,13 @@ char * str; p->next = root; return p; } + +void free_list(n) +node *n; +{ + node *tmp; + + for(tmp = n; tmp; tmp = n = n->next) { + free(tmp); + } +} |