Age | Commit message (Collapse) | Author | Files | Lines |
|
Well, here it is. The final solution to the final exercise! These last
few exercise solutions are not ideal by any measure of coding
excellence, but they function.
I plan to come back to this some day, with better debugging knowledge.
Then I can correct any issues.
|
|
There wasn't much to check for, but I checked for what I could think of.
|
|
I chose to implement calloc() by calling malloc.
This exercise went well, but I found it difficult to verify the contents
of the headers and buffers within memory. Valgrind showed the correct
number of bytes allocated, and a memory dump pointed to a good
result, but research was not conclusive.
|
|
This exercise uses the standard library instead of the homegrown
dirent.h outlined in the book. This is due to misbehavior in outputting
the file or directory names. This pointed to a data mismatch between the
data model supplied by the book and the data model actually used by my
operating system (GNU/Linux).
|
|
|
|
|
|
The refactor includes implementations for fflush and fclose as well,
needed in 8-03.
|
|
|
|
|
|
|
|
|