[comp.lang.c] Stack control

bobc@attctc.Dallas.TX.US (Bob Calbridge) (02/01/90)

Question: In Turbo C, how can you tell how much stack you have left?  Is there
a variable that contains that information?  If you find that there is some
conflict or your margins are getting close, how can you open up some more
stack space?  References to stack in the index don't seem to point to anything
along this line of questioning.

My concern is that a program I wrote that is currently 52K prox. under the 
large memory model either goes into a loop or crashes the system under certain
conditions but is not consistant.  It looks like it might be an accumulation
of circumstances that I can't seem to peg.

Thanks,
Bob
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=    More stupid questions available on request from                          =
-     bobc@attctc                     Your humble servant (real humble)       -
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=