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>setblock() modify size of dos memory segment</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
setblock()               Modify Size of DOS Memory Segment

 #include   <dos.h>

 int        setblock(seg,newsize);
 int        seg;                         Segment address
 int        newsize;                     New size in paragraphs

    setblock() modifies the size of a previously allocated DOS memory
    segment.  'seg' is the segment address returned by a previous call to
    allocmem().  'newsize' is the requested new size in paragraphs.

    Returns:    -1 is returned on success.  On error, the size of the
                largest possible block is returned, '_doserrno' is set,
                and 'errno' is set to ENOMEM (not enough core).

See Also: allocmem() freemem() malloc()

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