Quote Originally Posted by tabstop View Post
So why not if (j==0) *i = etc.?
Whoops, that was a typo. Yes that is what I should have in the function (but the error still persists).

Quote Originally Posted by MK27 View Post
What do you expect whatever->data to be? an array of ints? Or the literal value of a memory location (0xdeadbeef) that you are going to use how?
The &whatever->data is supposed to pass the address of the data, which is to hold an array of ints (which I used as int* instead of int[] because the size is never constant). That way, the function can resize the data to accomodate for each new element of data. Perhaps I did this the wrong way?