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>_bexpand() change size of memory block in based heap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _bexpand()              Change Size of Memory Block in Based Heap

 #include    <malloc.h>

 void _based(void) *_bexpand(seg, memblock, size);
 _segment seg;                  Based heap segment
 void _based *memblock;         Pointer to already allocated memory
 size_t size;                   New size

    This is the based heap version of _expand(); seg is the selected
    based heap segment, memblock is the allocated memory block whose
    size is to be changed, and size is the new size of memblock in
    bytes. _bexpand() returns a pointer to the expanded memory block if
    successful; -1 otherwise. See _expand() for more information.

    Returns:    a pointer to the reallocated memory block if successful, or
                -1 for failure.

 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