Linux + C – Malloc and Free

In the last post, we employed dynamic memory allocation. Today, we're looking at that concept in further detail. Allocating Memory The function malloc() - memory allocate pulls a section of the heap - memory that exists outside of the usual program stack which is used to store data members - and returns it to you. The

Linux + C – Linked Lists are Applied Pointers

We now understand (at least a little bit) how we can work with pointers. We're now going to look at one of the simplest, but most useful, data storage structures - the Linked List Referencing a Pointer Before we go any further, we need to look at a bit of syntax. We know that when we