delorie.com/archives/browse.cgi | search |
Date: | Thu, 15 Jun 2000 22:53:41 +0530 |
Message-Id: | <200006151723.WAA00663@midpec.com> |
From: | Prashant TR <tr AT midpec DOT com> |
To: | Moosehead AT tesco DOT net |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <8iaa8c$4ns$1@barcode.tesco.net> (Moosehead@tesco.net) |
Subject: | Re: Memory allocation. |
References: | <8iaa8c$4ns$1 AT barcode DOT tesco DOT net> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> I'm new to DJGPP and i'm a bit stuck. I want to allocate some memory for a > screen buffer in one of my prgrams. I need 192000 bytes. My question is: > what function is it best to use to allocate this memory? I know about malloc > but is it better to use one of the other __dpmi_... memory allocation > functions, if so which one and how are they used? "malloc" uses the DPMI functions by default. So, it's best to leave memory allocation to "malloc" itself. Prashant
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |