diff options
| author | Blake Romero <blake@blkrom.com> | 2024-09-18 00:32:53 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2024-10-30 10:13:26 +0000 |
| commit | 45c1fbf4dfe5c7a7243b625eb8a600bdce6c748f (patch) | |
| tree | 0c19f2d45941d2027ae5f07586af4bd427a5cdf6 /linkedlist/main.c | |
| parent | d1841d4d2a087d1681d1fb483301b4a7e4722f98 (diff) | |
Add makefile & tests
Diffstat (limited to 'linkedlist/main.c')
| -rw-r--r-- | linkedlist/main.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/linkedlist/main.c b/linkedlist/main.c deleted file mode 100644 index 3ba95a3..0000000 --- a/linkedlist/main.c +++ /dev/null @@ -1,44 +0,0 @@ -#include "ll.h" - -int main() { - Node* head = NEW_NODE; - int val; - - val = 7; - head->value = val; - printf("Init with %i:\t", val); - llprint(head); - - val = 12; - llpush(&head, val); - printf("Push %i:\t", val); - llprint(head); - - val = 99; - printf("Append %i:\t", val); - llappend(head,val); - llprint(head); - - val = 45; - printf("Insert %i:\t", val); - llinsert(&head, val, 2); - llprint(head); - - val = 42; - printf("Insert %i:\t", val); - llinsert(&head, val, 1); - llprint(head); - - printf("Pop %i:\t\t", llpop(&head)); - llprint(head); - - printf("Remove %i:\t",llrmlast(&head)); - llprint(head); - - printf("Remove %i:\t",llrm(&head,1)); - llprint(head); - - llvprint(head); - - llfree(head); -} |
