Setting up a linked list of free nodes

I was asked to allocate memory using "malloc", for example, malloc(1000). Then, I must divide these 1000 bytes in 10 blocks of 100 bytes. And, within each block of 100 bytes, the first 8 bytes represent a pointer to the next 100-byte block. So, the first block of 100 bytes is for the first item in the linked list, the second block of 100 bytes belongs to the second item in the linked list, and so on. This list is an intitial linked list of free nodes which I will use to implement insert and delete operations. Can anybody give me an idea of how to set the value for the pointers in order to set up this free nodes list?
Topic archived. No new replies allowed.