This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/keep.c

27 lines
349 B
C
Raw Permalink Normal View History

#include <dos.h>
void permanent()
{
/* . */
/* . */
/* . */
}
void transient()
{
/* . */
/* . */
/* . */
}
void main()
{
/* initialize our TSR */
transient();
/*
now terminate and keep resident
the non-transient portion
*/
_dos_keep( 0, (FP_OFF( transient ) + 15) >> 4 );
}