CS 3733 Operating Systems, Fall 2005 Assignment 1 Comments

  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.
  4. When you are asked to write a test program, don't just do one test.
  5. Do not assume a maximum size for the strings involved.
  6. Source lines should be at most 80 characters in length and must fit on one line when printed.
  7. In C, you cannot assume a fixed maximum number of digits in an int or long.
  8. Do not print in serialize3 or deserialize.
  9. Avoid memory leaks.
  10. You cannot use strtok directly in parse_for_int_token since it modified the string it is passed.
  11. strdup can return an error, check for it. Also, free the memory it allocates.
  12. To find the length of a string, use strlen rather than snprinf.
  13. A single function should not take up more than one page.
  14. You must make sure there is a colon after the token in parse_for_int_token.
  15. serialize.h should not contain anything that should be local to serialize.c.
  16. Know the difference between sizeof and strlen.