Ohh, so i just use i pointer to array and increment it, that works
Now it works
Good that it works, but I would brush up C data types again...
You are not using a "pointer to array" here (at least, I hope).
In most expression contexts, C arrays decay into pointers, specifically to a pointer to the first array element, with type pointer to element.
If a is an array, writing, e.g.
a[5] is simply a shorthand for
*(a+5), to the point that you can also correctly write
5[a].
See clause 20 on page 35, clause 3 on page 46, and clause 2 on page 70 of
the draft C99 standard.