Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- 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);
 int        status;                      Exit status
 int        size;                        Program size in paragraphs

    keeps() uses DOS function 0x31 to return to MS-DOS with the exit
    status in 'status'.  The current program remains resident. The
    program is set to 'size' paragraphs in length and the remainder of
    the memory of the program is freed.

    Returns:    There is no return value.

      Notes:    keep() can be used when installing a TSR program.

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