Skip to content
Snippets Groups Projects
Commit 9dfd336e authored by Kent Thang's avatar Kent Thang
Browse files

reorganized

parent a2fac2bc
No related branches found
No related tags found
No related merge requests found
File moved
No preview for this file type
File moved
File moved
File moved
...@@ -105,6 +105,7 @@ void clear(struct list *student_list) ...@@ -105,6 +105,7 @@ void clear(struct list *student_list)
void quit() void quit()
{ {
exit(0); exit(0);
} }
...@@ -149,7 +150,8 @@ int main() ...@@ -149,7 +150,8 @@ int main()
} }
case 5: case 5:
{ {
quit(); clear(&student_list);
quit(&student_list);
printf("Shutting down"); printf("Shutting down");
break; break;
} }
......
No preview for this file type
File moved
...@@ -122,6 +122,7 @@ int main(int argc, char **argv) ...@@ -122,6 +122,7 @@ int main(int argc, char **argv)
clear(&root); clear(&root);
clear(&root); clear(&root);
prepend(&root,9); prepend(&root,9);
clear(&root);
print(root.next); print(root.next);
printf("-----------\n"); printf("-----------\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment