Include:
Prototype: unsigned _dos_setblock(unsigned size, unsigned segment,
unsigned *maxsize);
Returns: 0 if successful, or DOS error code otherwise.
errno: ENOMEM
See also: _dos_allocmem, _dos_freemem, realloc
The _dos_setblock routine changes the size of segment, previously allocated
by _dos_allocmem, to size paragraphs, using system call 0x4A. If the request
cannot be satisfied, the maximum possible segment size is copied to the
buffer that maxsize points to.
Return Value
The function returns 0 if successful. If the call fails, it returns the DOS
error code and sets errno to ENOMEM, indicating a bad segment value was
passed (one that does not correspond to a segment returned from a previous
_dos_allocmem call) or invalid arena headers.