Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>freemen() free a previously allocated dos memory block</b> http://www.X-Hacker.org [<<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()

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