Due: 1/29/2001 - Class Time
Write a C program that accepts 1 integer command line argument that specifies how many times your program should print a message in response to cntl-C. After the specified number of messages the program should revert to default behavior when receiving cntl-C.
You should perform the following tasks:
You will use the 'script' command to capture all necessary information
for handin. You do that by
starting the script command "script myHandin3"
cat your source.c program
run your program
exit
Remove the cntl-Ms from the script file.
a2ps myHandin3 | lpr -P yourPrinterPreference
==================================================================
Alternate way to remove cntl-Ms (or any specific bytes from your file)
cat prog3.c | tr "\r" " " > new_prog3.c
//tr is a translate utility. \r is == cntl-M
if new_prog3.c is OK
{rm prog3.c
mv new_prog3.c prog3.c
}