2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <exec/lists.h>
7 #include <proto/exec.h>
11 struct Node node1
,node2
,node3
,node4
;
21 node1
.ln_Name
= "Eins";
24 node2
.ln_Name
= "Zwei";
27 node3
.ln_Name
= "Drei";
30 node4
.ln_Name
= "Vier";
32 Enqueue(&list
, &node1
);
33 Enqueue(&list
, &node2
);
34 Enqueue(&list
, &node3
);
35 Enqueue(&list
, &node4
);
39 printf("%s %d\n", n
->ln_Name
, n
->ln_Pri
);