Skip to content

Commit

Permalink
Merge pull request #13 from shishir-dey/feature/update-application
Browse files Browse the repository at this point in the history
Update target application to use the new APIs
  • Loading branch information
shishir-dey authored Oct 21, 2024
2 parents f5c68c4 + 2e6d429 commit 6cf6547
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
#include "linked_list.h"

int main(void)
node_t node1, node2, node3, node4, node5, node6;
char* str1 = "Node 1";
char* str2 = "Node 2";
char* str3 = "Node 3";
char* str4 = "Node 4";

int main()
{
Node *list = InitList();
AddNode(list, "Hello");
AddNode(list, "World");
DeleteList(list);
for (;;)
;
}
ll_init(&node1);
node1.data = str1;

node2.data = str2;
node3.data = str3;
ll_insert_at_head(&node2);
ll_insert_at_head(&node3);

node4.data = str4;
ll_insert_at_tail(&node4);

ll_delete_at_head();
ll_delete_at_tail();

return 0;
}

0 comments on commit 6cf6547

Please sign in to comment.