CS 3733 Operating Systems, Spring 2005 Assignment 1 Comments

Numbered comments, point penalties in parentheses:

  1. Staple the assignment in the upper left corner, not the right corner.
  2. Print your assignment using a fixed point type such as Courier, not a proportional type font.
  3. Do not ignore lint warning that are not on the list of warnings you can ignore.(-1)
  4. You must test all cases.
    For deserialize, read the last sentence of the first paragraph of Part 2.
    Each of the possible failure modes must be tested.(-1)
  5. Possible buffer overflows are serious problems.
    It is too late to check for the overflow after you have copied the string into a buffer.(-1)
  6. Do not assume a maximum size for the strings involved.(-1)
  7. Source lines should be at most 80 characters in length and must fit on one line when printed.(-1)
  8. In show_info you must cast the integral data types before printing. (-1)
  9. Do not say you have no lint warnings when you have serious ones.(-1)
  10. In C, you cannot assume a fixed maximum number of digits in an int or long.
  11. Don't cast an integral type to a float when printing it out.(-1)
  12. The deserialize function might not set the name if it reports and error.
  13. Do not print in serialize or deserialize.
  14. Avoid memory leaks.(-1)
  15. Don't use an array when separate variables are more appropriate.