Success! Item added to your basket!

How do you tell if a path is a file or a directory? How do you get file size without opening the file? The answer: stat . They walk the reader through the struct stat and the S_ISDIR() macro, showing how to build a primitive ls command.

Those looking to understand the "why" behind UNIX-style C programming.

While the C standards have evolved, the underlying logic of memory management and data organization hasn't changed.