The standard library, files and time
This part of the C course covers the rest of the standard library: strtol, qsort and bsearch, text and binary files, directories and their metadata, line-by-line text processing, clocks and formatted time, and a random number generator that is better than rand.
10.1
The stdlib.h toolbox
strtol, qsort, bsearch, abort, exit, abs
Open
10.2
Text files
fopen modes, fprintf, fgets, fclose, error checks
Open
10.3
Binary files
fwrite, fread, records, endianness, ftell and fseek
Open
10.4
Directories and file metadata
opendir, readdir, stat, permissions
Open
10.5
Text processing
getline, strtok, strspn, line splitting, word counting
Open
10.6
Time and clocks
time, clock_gettime, monotonic clocks, strftime
Open
10.7
Random numbers
rand, srand, ranges, bias, a better generator
Open