This question builds up on my previous question: Difference Between *list and **list. I decided to split them into two questions to make it less confusing, clear, and fair for people answering.
I have this code:
typedef struct A
{
char c[100];
}A;
listSize = 5000;
A *list = malloc(listSize * sizeof(*list));
I want to call a function and create a pointer for every element.
How would I create 5000 pointers and make them point to the elements on the list?
p0 -> list[0]
p1 -> list[1]
..
..
p[n] -> list[n]