So my problem is here:
char *input;
char *takenpositions[18] ={"A0","A0","A0" /* etc. */};
int k;
for(k = 0; k < 18; k++) {
scanf("%s",&input);
/* ...
The program is doing other things with input here, then i want to put it
into the array in place of the A0s. I tried strncpy, and other things but
maybe i couldn't use it correctly.
...
*/
takenpositions[k] = input;
}
I couldn't find the answer maybe because it's too easy or I'm just lame.