Mail Archives: djgpp/1996/10/09/07:28:53
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 -