CS 3733 Operating Systems, Spring 1999 Assignment 3 Comments


Warning: This is not for the current semester.


Assignment 3 notes: Spring 1999
  1. The readone function should be in a separate file.
    You should use separate compilation whenever possible.
  2. Do not do all tests with strings of the same length.
    There are some problems that only show up when you vary the length of the input data.
  3. The data put in the buffer by readone is not a string.
    It is not terminated like a string and should not be printed with %s unless you terminate it yourself.
  4. It is not a good idea to mix file porit and file descriptor output to the same device.
    Output may not appear in the expected order due to differences in buffering.
  5. You should almost never use exit in a function.
    If an error occurs, call return and let the calling program handle the error.