qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_dos_setblock
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _dos_setblock routine uses system call 0x4A to change the
     size of <seg>, previously allocated by _dos_allocmem, to <size>
     paragraphs. If the request cannot be satisfied, the maximum
     possible segment size is copied to the buffer pointed to by
     <maxsize>.
 
     Return Value
 
     The function returns 0 if successful. If the call fails, it
     returns the DOS error code and sets errno to ENOMEM, indicating
     that a bad segment value was passed (one that does not correspond
     to a segment returned from a previous _dos_allocmem call) or one
     that contains invalid arena headers.
                                    -♦-