3 typedef unsigned int uint
;
10 Cons
listCons (int n
, Cons c
) {
13 res
= (Cons
) malloc (sizeof(*res
));
14 fprintf (stderr
, "0x%08x = listCons (%d)\n", (uint
)res
, n
);
20 Cons
listSing (int n
) {
23 res
= (Cons
) malloc (sizeof(*res
));
24 fprintf (stderr
, "0x%08x = listSing (%d)\n", (uint
)res
, n
);
30 void listFree (Cons p
) {
31 fprintf (stderr
, "listFree (0x%08x)\n", (uint
)p
);
35 int listSum (Cons c
) {
38 fprintf (stderr
, "listSum\n");
40 for (; c
!= NULL
; c
= c
->next
)