CS 3733 Operating Systems, Fall 2005 Assignment 1 Comments
- This assignment was graded on the basis of 30 points.
- On this assignment there is a small penalty for lint-related errors.
- In future assignments, not including lint output, or the presence of
lint warnings that you should eliminate will result in large penalties,
possibly up to half of the total point value of the assignment.
- You need to learn how to use lint. Each main program is linted with all
of the pieces needed to run it.
- Staple the assignment in the upper left corner, not the right corner.
- Print your assignment using a fixed point type such as Courier, not a
proportional type font.
- Do not ignore lint warning that are not on the list of warnings you can
ignore.
- When you are asked to write a test program, don't just do one test.
- Do not assume a maximum size for the strings involved.
- Source lines should be at most 80 characters in length and must fit on one
line when printed.
- In C, you cannot assume a fixed maximum number of digits in an int or long.
- Do not print in serialize3 or deserialize.
- Avoid memory leaks.
- You cannot use strtok directly in parse_for_int_token
since it modified the string it is passed.
- strdup can return an error, check for it. Also,
free the memory it allocates.
- To find the length of a string, use strlen rather than
snprinf.
- A single function should not take up more than one page.
- You must make sure there is a colon after the token in
parse_for_int_token.
- serialize.h should not contain anything that should be local to
serialize.c.
- Know the difference between sizeof and strlen.