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).
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster