As noted in the comment that you opted not to read.
[edit]Oh wait... Nevermind. That was probably blanketed over to me, but definitely directed at the OP. Sorry[/edit]
In my code, you would simply do something like this:
Code:
char *p; // <--= declare this somewhere
if((p = strtok(buffer, ";")))
strncpy(array->quest, p, sizeof(array->quest));
else
*array->quest = 0;
for(i = 0; i < 4; ++i)
if((p = strtok(NULL, ";")))
strncpy(array->choice[i], p, sizeof(*array->choice));
else
*array->choice[i] = 0;
if((p = strtok(NULL, ";")))
array->ans = *p
else
array->ans = 0;