andrew@alberta.UUCP (Andrew Folkins) (12/10/87)
Does anyone out there know how to determine the total amount of free memory in Microsoft C 4.0's heap? I'm writing a large memory model program which does a lot of buffering, and I need to know when memory is getting low. I've dug through all three manuals and traced through malloc() using CodeView, but my 80x86 assembler isn't good enough for me to figure out how malloc() determines when it's out of memory, and MSC doesn't include a memavail() function which gives the total memory (there are ones for default data and stack segments, but that's not what I'm looking for). Thanks in advance. -- Andrew Folkins ...ihnp4!alberta!andrew The University of Alberta, Edmonton, Alberta, Canada What? You expect a witty intelligent remark at 4 o'clock in the morning?