LIFO
James Cummings
james at dlss2.UUCP
Fri Nov 2 08:51:09 AEST 1990
I have been struggling with what ought to be an easy problem.
I am trying to build a Last In First Out stack that I can store the
several structures in. I want to be able to "pop" them back out again
in reverse order.
So far, with a structure like:
struct myst {
char word1[10];
char word2[10];
struct myst *next;
};
and some pointers of the same form, I have only managed to retreive
the last structure on the stack...I seem to be able to go no further.
Could some kind sole, please nudge me in the right direction or
give me a *pointer to a book?
Env: Sys V 3.2.1
K&R C
More information about the Comp.lang.c
mailing list