array of struct read from file in C
user3629249's answer is good. The only thing I have to add:

struct csv_line *line_pointer = NULL;

// ...

&amp;(line_pointer + i)-&gt;value1


is awkward. Why go through the pointer addition acrobatics? Why not just

&amp;line_pointer[i].value1