Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>keep() exit and remain resident</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 keep()                  Exit and Remain Resident

 #include   <dos.h>

 void       keep(status,size);
 unsigned char                           status;  Exit status
 unsigned   size;                        Program size in paragraphs

    keep() uses the advanced MS-DOS terminate-but-stay-resident function
    0x31 to return to MS-DOS with the exit status in 'status'.  The
    current program remains resident; its size is set to 'size'
    paragraphs, and the remaining memory allocated to the program is
    freed.

       Returns:     There is no return value

   Portability:     MS-DOS only.



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson