[cs631apue] midterm snapshot feedback
Jan Schaumann
jschauma at stevens.edu
Thu Oct 16 12:12:20 EDT 2025
Hello,
I'll be returning some feedback on your midterm
snapshot to you in a little bit. A few things that
are worth calling out to all:
I expect your Makefile to be efficient and compile
source files individually as needed. That is, no
cc *.c
Use strmode(3) instead of implementing its
functionality yourself.
Use getopt(3) instead of trying to parse command-line
options yourself.
Use humanize_number(3) to, well, humanize a number.
Use isprint(3) instead of checking char integer
values.
Remember to support whiteout files for file suffixes.
I very strongly recommend against using
opendir(3)/readdir(3) -- use fts(3) instead!
I very strongly advise against looking at other
implementations of ls(1). Even if you don't intend
to, you will likely end up copying code. (See also:
"clean-room design".)
And remember to run your command against the test
directory and other non-standard scenarios.
Good luck!
-Jan
More information about the cs631apue
mailing list