Date: Wed, 9 Oct 1996 13:10:26 +0200 (IST) From: Eli Zaretskii To: Markus Malmgren Cc: djgpp AT delorie DOT com Subject: Re: The best way to allocate memory In-Reply-To: <01bbb497$ce1d2ae0$6f5df482@s-14476> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.