Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <malloc.h>
    void hfree( void __huge *ptr );

Description:
    The hfree function deallocates a memory block previously allocated by
    the  halloc function.  The argument ptr points to a memory block to be
    deallocated.  After the call, the freed block is available for
    allocation.

Returns:
    The hfree function returns no value.

Example:
    #include <stdio.h>
    #include <malloc.h>

    void main()
      {
        long int __huge *big_buffer;

        big_buffer = (long int __huge *)
                      halloc( 1024L, sizeof(long) );
        if( big_buffer == NULL ) {
          printf( "Unable to allocate memory\n" );
        } else {

          /* rest of code goes here */

          hfree( big_buffer );  /* deallocate */
        }
      }

Classification:
    WATCOM

Systems:
    DOS/16, Windows, QNX/16, OS/2 1.x(all)

See Also:
    calloc Functions, _expand Functions, free Functions, halloc, malloc
    Functions, _msize Functions, realloc Functions, sbrk

See Also: halloc sbrk

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