Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!csn!spot.Colorado.EDU!rhysling From: rhysling@news.colorado.edu (RHYSLING MICHAEL S) Newsgroups: comp.lang.c Subject: Help with farcoreleft() in Turbo C++ Message-ID: Date: 19 Feb 91 00:40:22 GMT Sender: news@csn.org (news) Reply-To: rhysling@spot.Colorado.EDU Organization: University of Colorado, Boulder Lines: 17 Nntp-Posting-Host: spot.colorado.edu I'm writing a program that does a lot of textfile processing. For speed, I want to do most of it in RAM, allocating the biggest block I can. I am compiling in the compact model (64k code, 1Mb data) and chkdsk says I have 300k free. However, the following call to farcoreleft says I only have about 61k free. unsigned long memfree; memfree = (unsigned long) farcoreleft(); printf ("Bytes free: %lu\n"); Can anyone tell me what's going on? Please email replies. Thanks in advance, Michael Rhysling rhysling@spot.colorado.edu u