

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


struct link { EleType value; struct link * next; };
An Active Learning Approach to Data Structures using C 2
struct link { EleType value; struct link * next; }; struct linkedListStack { struct link *firstLink; } void linkedListStackInit (struct linkedListStack * s) { s->firstLink = 0; } void linkedListStackFree (struct linkedListStack *s) { while (! linkedListStackIsEmpty(s)) linkedListStackPop(s); } void linkedListStackPush (struct linkedListStack *s, double d) { struct link * newLink = (struct link *) malloc(sizeof(struct link)); assert (newLink != 0); } double linkedListStackTop (struct linkedListStack *s) { } void linkedListStackPop (struct linkedListStack *s) { } int linkedListStackIsEmpty (struct linkedListStack *s) { }