From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J." Subject: RE: obstack_alloc & _obstack_newchunk Date: Wed, 23 Feb 2005 14:37:17 +0100 (CET) Message-ID: References: Reply-To: linux-c-programming@vger.kernel.org Mime-Version: 1.0 In-Reply-To: Content-ID: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org On Wed, 23 Feb 2005, Mariano Moreyra wrote: > Hi J. > > You need to init your obstack before using it > Also, you need to declare this before calling obstack_init() > > #define obstack_chunk_alloc malloc > #define obstack_chunk_free free > > So, your code would look like this: ... Thank you for the complete answer.. !! Cheers, J.