I would like to use the following structure:
typedef struct
{
int score;
char score_char[10];
char playername[30];
} our_player;
our_player our_players[10]; // array of 10 our_players
that seems to work when I use this in the following (at least I don't get an error):
(in a for loop)
our_players[i].playername = " ";
but that doesn't seem to work when using
file_str_read(filehandle,our_players[i].playername);
or even when I simply try to copy as in:
str_cpy(our_players[i].playername,current_player);
Any suggestions or help would be very welcome
Thanks
Gerrit