Mail Archives: djgpp/1997/06/12/10:59:47
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -