[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson