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++ Language Reference - dos_calloc 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  MSDOS.  If
   successful,  the  allocated memory is cleared (all  bytes  zero).  The
   argument para contains the number of  paragraphs required. Use:
   bytes_required/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

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