CS010 Practice 7

File Protection, Links, Header Files

 
  1. Change the protection on some of your files so that people besides you and your group have no permission.
  2. Make a symbolic link to one of your C files. Change the file using either name. Be sure to save the file in Emacs. Now view the file through the other name. Notice that the updated contents is visible through the second name.
  3. Take your solution to the turnin assignment # 2 and divide it into two C files. Put the functions that I gave you into a C file called utils.c. Create a header file utils.h so that the file containing the main program can use the functions in the other file. Compile and run this program. You should get the same results as before, but now your functions are defined in a way that they could be reused in a different program. What other functions from your hangman program would make sense to put into their own file and why?