Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>dos_calloc</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dos_calloc

Usage

   #include <dos.h>

   unsigned dos_calloc(unsigned para):

Description

   Allocates memory from the heap by a direct call to MS-DOS. If successful,
   the allocated memory is cleared (all bytes zero). The argument para
   contains the number of paragraphs required. Use:

           (bytes_required+15)/16

   Memory allocated with dos_calloc should be freed using dos_free only.

Example 

   See that for dos_alloc.

Return Value

   If successful dos_calloc returns the segment of the allocated block,
   otherwise zero is returned and _doserrno is set to the DOS error number.


See Also

   DOS package, dos_alloc, dos_free, dos_setblock



See Also: dos_alloc dos_free dos_setblock

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson