C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_halloc
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _halloc function allocates a huge array from the operating
     system consisting of <num> elements, each of which is <size> bytes
     long. Each element is initialized to 0. If the size of the array
     is greater than 128K (131,072 bytes), the size of an array element
     must then be a power of 2.
 
     Use the _hfree function to deallocate a block of memory returned
     by _halloc.
 
     Return Value
 
     The _halloc function returns a void huge pointer to the allocated
     space, which is guaranteed to be suitably aligned for storage of
     any type of object. To get a pointer to a type other than void
     huge, use a type cast on the return value. The return value is
     NULL if the request cannot be satisfied.
                                    -♦-