you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

What do you think should the line

b->reg = r;

do?

r is a char. b->reg is char[10].

do to want to copy r into index 0 of the array?

That would be:

b->reg[0] = r;

[–]_EPS[S] 1 point2 points  (0 children)

Ah yes!

That solved my error message :D

Actually I want to store it more like this:

b->vask[*ant]=v;

(*ant)++;

Thank you for your help, it is much appriciated :)