Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!paperboy!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!cs.umu.se!erikt From: erikt@ume.cs.umu.se (Erik T{rnvik) Newsgroups: comp.os.msdos.programmer Subject: Available dynamic memory in MSC 6.0 Message-ID: <1991Mar25.095017.9802@cs.umu.se> Date: 25 Mar 91 09:50:17 GMT Sender: news@cs.umu.se (News Administrator) Organization: Dep. of Info.Proc, Umea Univ., Sweden Lines: 15 Originator: erikt@ume.cs.umu.se I'm using Microsoft C 6.0 in a major project. During execution I need to know how much (dynamic) memory is available for allocation. There are some functions (_maxavail() and _memavail()) that only seems to work in small models, but since we use large model, I cannot use those functions. Right now I'm using the obvious but stupid method, I allocate and allocate until I hit the roof, and then I free the memory again. Not nice, but it works. -- Erik Tarnvik University of Umea erikt@cs.umu.se Dept. of Computing Science TEL:+46-90166583 S-90187 Umea, SWEDEN "audentes fortuna juvat"