Commit 3be4ad2a authored by Liam E. Roeth's avatar Liam E. Roeth

add test.c

parent b6e8ee2d
...@@ -38,7 +38,7 @@ void menu(struct Node *head){ ...@@ -38,7 +38,7 @@ void menu(struct Node *head){
} }
int main(){ int main1(){
struct Node *start = NULL; struct Node *start = NULL;
...@@ -47,6 +47,3 @@ int main(){ ...@@ -47,6 +47,3 @@ int main(){
return 0; return 0;
} }
#include<stdio.h>
#include<stdlib.h>
#include "llist.h"
int main(){
NODE *two = construct(2, NULL);
NODE *one = construct(1, two);
NODE *root = construct(0, one);
Print_List(root);
NODE *target = Search(root, 2);
Print_Node(target);
Delete_List(root);
Print_List(root);
return 1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment