-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.c
33 lines (29 loc) · 769 Bytes
/
test.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
/*
void print_stacks(t_psw_list *a_list, t_psw_list *b_list)
{
printf("STACK A:\n");
while (a_list != NULL)
{
printf("%i index:%i costs:%i ra:%i rra:%i rb:%i rrb:%i rr:%i rrr:%i\n",
a_list->content, a_list->index, a_list->costs, a_list->ra,
a_list->rra, a_list->rb, a_list->rrb, a_list->rr, a_list->rrr);
a_list = a_list->next;
}
printf("STACK B:\n");
while (b_list != NULL)
{
printf("%i index:%i costs:%i ra:%i rra:%i rb:%i rrb:%i rr:%i rrr:%i\n",
b_list->content, b_list->index, b_list->costs, b_list->ra,
b_list->rra, b_list->rb, b_list->rrb, b_list->rr, b_list->rrr);
b_list = b_list->next;
}
}
void print_stack(t_psw_list *a_list)
{
while (a_list != NULL)
{
printf("A:%i\n", a_list->content);
a_list = a_list->next;
}
}
*/