-
Notifications
You must be signed in to change notification settings - Fork 0
/
3-main.c
43 lines (41 loc) · 1.11 KB
/
3-main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "lists.h"
/**
* main - check the code
*
* Return: Always 0.
*/
int main(void)
{
list_t *head;
head = NULL;
add_node_end(&head, "Anne");
add_node_end(&head, "Colton");
add_node_end(&head, "Corbin");
add_node_end(&head, "Daniel");
add_node_end(&head, "Danton");
add_node_end(&head, "David");
add_node_end(&head, "Gary");
add_node_end(&head, "Holden");
add_node_end(&head, "Ian");
add_node_end(&head, "Ian");
add_node_end(&head, "Jay");
add_node_end(&head, "Jennie");
add_node_end(&head, "Jimmy");
add_node_end(&head, "Justin");
add_node_end(&head, "Kalson");
add_node_end(&head, "Kina");
add_node_end(&head, "Matthew");
add_node_end(&head, "Max");
add_node_end(&head, "Michael");
add_node_end(&head, "Ntuj");
add_node_end(&head, "Philip");
add_node_end(&head, "Richard");
add_node_end(&head, "Samantha");
add_node_end(&head, "Stuart");
add_node_end(&head, "Swati");
add_node_end(&head, "Timothy");
add_node_end(&head, "Victor");
add_node_end(&head, "Walton");
print_list(head);
return (0);
}