char *headerString = strstr(line, "...\">");
printf("%d", feof(site)); //all is ok
sscanf(headerString, "...\">%[^<]", tempQuestion.header);
printf("%d", feof(site)); //crash
I am completely puzzled why it crashes. I mean, sscanf doesn't do anything with FILE *site, why would it possibly crash?
EDIT: tempQuestion.header is (char *). What else would you like to know? Everything befor this part worked good. I guess, that I am getting access violation error then program crashes. Using debugger I found out that after the sscanf is done site address changes.