Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>farrealloc() adjust allocated block in far heap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
farrealloc()             Adjust Allocated Block in Far Heap

 #include   <alloc.h>

 void far *farrealloc(block,newsize);
 void far *block;                        Allocated block in memory
 unsigned long newsize;                  New size of block

    farrealloc() changes the size of the allocated 'block' to 'newsize'.
    If necessary, the contents are copied to a new location. 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:    The address of the reallocated block, which may be
                different than the address of the original block.  NULL
                is returned if the block cannot be reallocated.

See Also: farcalloc() farcoreleft() farfree() farmalloc()

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