[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
farcalloc()              Allocate Memory from Far Heap

 #include   <alloc.h>

 void far       *farcalloc(nunits,unitsz);
 unsigned long  nunits;                  Number of elements
 unsigned long  unitsz;                  Size of nunits

    farcalloc() allocates a block of memory from the far heap for an
    array containing 'nunits' elements, each 'unitsz' bytes long.  For
    allocating from the far heap, note that:

                all of available RAM can be allocated
                blocks larger than 64K can be allocated

    Far pointers are used to access the allocated blocks.

    Returns:    A pointer to the newly allocated block, or NULL if not
                enough space exists for the new block.

      Notes:    The tiny model cannot make use of farcalloc() because it
                cannot have any segment fixups (which are often produced
                by far pointers).

See Also: farmalloc() farcoreleft() farfree() farrealloc()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson