Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_nexpand() change size of near heap memory block</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _nexpand()              Change Size of Near Heap Memory Block

 #include   <malloc.h>

 void _near *_nexpand(memblock, size);
 void _near *memblock;          Pointer to near heap memory block
 size_t size;                   New size (bytes)

    _nexpand() is the near heap version of _expand(); it changes the
    size of a memory block, memblock, on the near heap to size,
    returning a pointer to the newly expanded block if successful. See
    _expand() for more information.

    Returns:    A pointer to the new block of allocated memory on
                the near heap if the allocation was successful; NULL
                otherwise.

 Portability:   Not supported by the ANSI standard.


See Also: calloc() _expand() free() malloc() _msize() realloc()

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