2 #import "Stack-generic.h"
6 #define NULL_LINK (StackLink *) 0
19 while (top != NULL_LINK)
32 newLink = (StackLink *) malloc (sizeof (StackLink));
35 fprintf(stderr, "Out of memory\n");
38 newLink->data = value;
55 value = topLink->data;
79 printf("Stack[%d] = %d\n", i, startLink->data);
80 startLink = startLink->next;