Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!husc6!ogccse!littlei!donk!ajw From: ajw@donk.UUCP (ajw) Newsgroups: comp.sys.ibm.pc Subject: Re: "How much memory left"? call for MS 5.1 Message-ID: <345@donk.UUCP> Date: 14 Jul 89 19:20:35 GMT References: <215@intek01.UUCP> Organization: DTE, Intel Corporation; Hillsboro, OR Lines: 17 In article <215@intek01.UUCP>, mark@intek01.UUCP (Mark McWiggins) writes: > I tried RTFMing and don't see a handy "tell me how much memory is left" > for MS 5.1 (large model). Does anybody know where I can get one of these? unsigned paragraphs; int maxavail; _dos_allocmem((unsigned)65000, ¶graphs); /* ask DOS what he's got */ maxavail = paragraphs / 64; /* max contiguous K available */ > Thanks in advance. Welcome. -- Alan Waldock, just offering individual opinions while happening to work at Intel Corp, M/S HF2-37, 5200 NE Elam Young Pkwy, Hillsboro, Oregon 97124-6497 ajw@aus.hf.intel.com ...uunet!littlei!intelhf!aus!ajw "Live malloc or die"