Stack implementation.

Programming, for all ages and all languages.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Stack implementation.

Post by Solar »

@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).
Every good solution is obvious once you've found it.
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Stack implementation.

Post by bluemoon »

I see, I misunderstood part of the conversation, sorry guys if I bring up confusion to the topic.
Post Reply