
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>setblock() modify size of ms-dos memory segment</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
setblock() Modify Size of MS-DOS Memory Segment
#include <dos.h>
int setblock(seg,newsize);
unsigned seg; Segment address
unsigned newsize; New size in paragraphs
setblock() changes the size of a DOS memory segment, basing the
change on the segment address ('seg') returned by an earlier call to
allocmem() and the size, in paragraphs, specified by 'newsize'.
Returns: -1, if successful. On error, the size of the largest
possible block is returned, '_doserrno' is set, and
'errno' is set to ENOMEM (not enough memory).
Portability: MS-DOS only.
See Also: allocmem() freemem() malloc()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson