October 2025
Intermediate to advanced
241 pages
4h 6m
English
We’ve seen in Chapters 12 and 13 that common information can be placed in an array of memory locations to be searched or sorted. In this chapter, we’re going to place directory information, like that found by the ls utility, into a linked list. A linked list contains a memory allocation (malloc) for each node of information that we want to store. Each allocation also contains a pointer to the next piece of information. There is also a head node that points to the beginning of the list. Another ...
Read now
Unlock full access