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 - farcalloc http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                farcalloc

   Usage
   #include <dos.h>
   void far *farcalloc(unsigned long numelems, unsigned long size);

   Description
   farcalloc  allocates memory from the far heap for an array  containing
   numelems elements, each size bytes long.

   This  function  is  very similar to calloc. In the  small  and  medium
   memory  models calloc allocates memory within the near  heap,  whereas
   farcalloc allocates memory in the far heap. In the large memory model,
   both functions allocate memory from the far heap.

   Example
   See that provided under the heading Far_Package.

   Return Value
   farcalloc returns a far pointer to the allocated memory block, or NULL
   if not enough space exists.


See Also: calloc farcoreleft farfree farmalloc farrealloc free malloc

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