Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>freemem() free a previously allocated ms-dos memory block</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 freemem()               Free a Previously Allocated MS-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:     0, if successful.  On error, -1 is returned and
                    'errno' (defined in <errno.h>) is set to ENOMEM
                    (insufficient memory).

   Portability:     MS-DOS only.


See Also: allocmem() malloc() setblock()

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