www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/09/07:28:53

Date: Wed, 9 Oct 1996 13:10:26 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Markus Malmgren <maad AT hem DOT passagen DOT se>
Cc: djgpp AT delorie DOT com
Subject: Re: The best way to allocate memory
In-Reply-To: <01bbb497$ce1d2ae0$6f5df482@s-14476>
Message-Id: <Pine.SUN.3.91.961009130737.8710A-100000@is>
Mime-Version: 1.0

On 8 Oct 1996, Markus Malmgren wrote:

>  I wonder which of the follwing ways is the best to allocate memory, is it:
> malloc, calloc, __dpmi_allocate_memory or __dpmi_allocate_linear_memory?

Just use the usual C library functions `malloc' and `calloc'.  The DPMI 
functions are DJGPP-specific and you don't need them for usual 
application programming.  They should be only used for interfacing with 
special memory-mapped hardware or when you want to replace the library 
allocation functions.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019