2 #include <exec/lists.h>
3 #include <proto/exec.h>
7 struct Node node1
,node2
,node3
,node4
;
17 node1
.ln_Name
= "Eins";
20 node2
.ln_Name
= "Zwei";
23 node3
.ln_Name
= "Drei";
26 node4
.ln_Name
= "Vier";
28 Enqueue(&list
, &node1
);
29 Enqueue(&list
, &node2
);
30 Enqueue(&list
, &node3
);
31 Enqueue(&list
, &node4
);
35 printf("%s %d\n", n
->ln_Name
, n
->ln_Pri
);