@bluemoon:
What brain and I were talking about was the copying of the pushed string into the stack, and the free()ing of the on-stack string after it was pop()ed (and hopefully copied elsewhere).
Stack implementation.
Re: Stack implementation.
Every good solution is obvious once you've found it.
Re: Stack implementation.
I see, I misunderstood part of the conversation, sorry guys if I bring up confusion to the topic.