[comp.sys.ibm.pc] HELP: how to make alarm clock in LATTICE-C for MSDOS

jchvr@ihlpg.UUCP (04/22/87)

Many nights I spend too long behind the keyboard because I forget all about 
the time of day.

So what I would like to make is a little Lattice C program that I
can call as:
		alarm 23:30
Then I get back my MSDOs prompt and can do anything I want.
Meanwhile the alarm program is still in memory and keeps checking
the clock until it is 23:30 and then it starts to beep 5 times or
so.

Now what I need to know from some expert is:
	1. how to make the Lattice -C program memory resident
	2. how to make it wake up every so often whithout
	destroying the current process.
	3. how to stop the program once it has done its function.
	  (I can accept some memory waisting here, but it would be
	nice to turn off the execution of the little demon.

Please send human readable answer/pieces of code via mail or post
and I will summarize.