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>_bcalloc() allocate memory on specified based heap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _bcalloc()              Allocate Memory on Specified Based Heap

 #include   <malloc.h>

 void _based(void) *_bcalloc(seg, num, size);
 _segment seg           Based heap segment
 size_t num             Number of elements requested
 size_t size            Size of each element

    This is the based heap form of calloc(). seg is the based-heap
    segment selector, num is the number of elements you want to
    allocate, and size is the length (in bytes) of each element.
    For more information, see calloc(). This function returns a pointer
    to the allocated memory if successful; -1 otherwise.

    Returns:    A pointer to the allocated space if successful, -1
                otherwise.

 Portability:   Not supported by the ANSI standard.

See Also: calloc() free() halloc() hfree() malloc() realloc()

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