aboutsummaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-07-27 12:41:50 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-07-27 12:41:50 -0400
commite0e828e2c2f2032d1c9616950d0208f2aab6fcb8 (patch)
tree8be0532e66d6e2f03d7eaa0efca9700b1bf71386 /node.c
parent596bc33348e2daa5af8a0168f015e850aeccf0fc (diff)
Add basic scopes
Diffstat (limited to 'node.c')
-rw-r--r--node.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/node.c b/node.c
index e1b7920..ca6548b 100644
--- a/node.c
+++ b/node.c
@@ -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);
+ }
+}