aboutsummaryrefslogtreecommitdiff
path: root/ch8 (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-01-23Solve Exercise 8-6: calloc()zlg1-0/+136
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.
2022-01-18Solve Exercise 8-05: fsize extendedzlg1-0/+77
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).
2022-01-09Solve Exercise 8-4: fseek() implementationzlg2-11/+68
2022-01-09Solve exercise 8-3: fflush and fclosezlg1-0/+40
2022-01-09Refactor syscalls.h for ch8 exerciseszlg3-117/+234
The refactor includes implementations for fflush and fclose as well, needed in 8-03.
2018-12-22Solve Exercise 8-2: fopen and fillbufzlg3-0/+181
2017-05-20perfeeerrrrrmzlg1-1/+1
2017-05-208-1: Correct superfluous increment, commentzlg1-2/+1
2017-05-20Solve Exercise 8-1: `cat` remasteredzlg1-0/+115