CS430 Lab 4: Practice with C Memory Addresses
Due Thursday, September 28
Download and compile the program "segv.c" from the class examples area. It will cause a memory access violation (segfault) and crash.
Add code to catch SIGSEGV. When the signal is received, the program should print out an apology and call exit(0). Refer to the class example on signals, or the following man pages:
man 7 signal
Turning in the lab
Upload the lab on the class website.