◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── The _dos_freemem function uses system call INT 0x49 to release a block of memory previously allocated by _dos_allocmem. The <seg> argument is a value returned by a previous _dos_allocmem call. The freed memory may no longer be used by the application program. Return Value If successful, _dos_freemem returns 0. Otherwise, it returns the DOS error code and sets errno to ENOMEM, indicating a bad segment value (one that does not correspond to a segment returned by a previous _dos_allocmem call) or invalid arena headers. -♦-