Message-Id: <1.5.4.32.19970612144711.006881fc@dce03.ipt.br> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 12 Jun 1997 11:47:11 -0300 To: KayHayen AT smooth DOT netzservice DOT de, djgpp AT delorie DOT com From: Cesar Scarpini Rabak Subject: Re: Growing stack with djgpp Precedence: bulk At 01:00 11/06/97 +0000, Kay Hayen wrote: > >Hallo. > >I'd need to have a growing stack for at least one recursive function that >does some sorting stuff. > >Is there a way to achieve this? With the details you posted, the best advice IMHO its to switch from using the stack to dynamic memory allocation and when you need to chage the size use the ANSI C function realloc. This function has some subtle characteristics, so I advise you to grab a good book on C which describes all its nuances Bill Plauger's "The Standard C Library" book is a good one, and for an acid comment on this function, but full of important info grab the Steve Maguire's "Writing Solid Code". HTH, ('though dense) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br DME/ASC Phone: 55-11-268-3522 Ext.350 IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996 Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~