Added some characters to the German keymap to be entered
[cake.git] / test / enqueue.c
blob4596ba7e093d63742c225974cdc32ec0d39780ec
2 #include <exec/lists.h>
3 #include <proto/exec.h>
5 #include <stdio.h>
7 struct Node node1,node2,node3,node4;
8 struct List list;
10 int main(void)
12 struct Node *n;
14 NEWLIST(&list);
16 node1.ln_Pri = 3;
17 node1.ln_Name = "Eins";
19 node2.ln_Pri = 2;
20 node2.ln_Name = "Zwei";
22 node3.ln_Pri = 1;
23 node3.ln_Name = "Drei";
25 node4.ln_Pri = 3;
26 node4.ln_Name = "Vier";
28 Enqueue(&list, &node1);
29 Enqueue(&list, &node2);
30 Enqueue(&list, &node3);
31 Enqueue(&list, &node4);
33 ForeachNode(&list, n)
35 printf("%s %d\n", n->ln_Name, n->ln_Pri);
38 return 0;