[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
freemen()                Free a Previously Allocated DOS Memory Block

 #include   <dos.h>

 int        freemem(seg);
 unsigned   seg;                         Segment address

    freemem() frees a memory block allocated by a previous call to
    allocmem().  'seg' is the segment address of that block.

    Returns:    freemem() returns 0 on success.  On error, -1 is returned
                and 'errno' (defined in <stdlib.h>) is set to ENOMEM
                (insufficient memory).

See Also: allocmem() malloc() setblock()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson