Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "linkedList.h"
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- node* first = (node*)malloc(sizeof(node));
- AllocationsCheck(first);
- first = NULL;
- for (int i = 0; i < 5; i++)
- {
- list_insert(&first, i);
- print_list(first);
- }
- /*poping*/
- for (int i = 0; i < 5; i++)
- {
- printf("Popping : %d\n\n", first->val);
- list_delete(&first);
- print_list(first);
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement