We have given you a number of suggestions to find out why your code is not working. The most important one that you seem to ignore, is to get the maximum error messages from the compiler. Your main.c element has the following:
while(fscanf(fp," %d;%s;%s;%s;%s;%s; %c;%s",&nehezseg,kerdes,A,B,C,D,valasz,kategoria)!=EOF){
hozzafuz(elso,ujelem(nehezseg,kerdes,A,B,C,D,valasz,kategoria));
}
and my compiler correctly noted that the parameter for a
%c
type, should be a pointer to a character variable, rather than the name. So change that to:
while(fscanf(fp," %d;%s;%s;%s;%s;%s; %c;%s",&nehezseg,kerdes,A,B,C,D,&valasz,kategoria)!=EOF){
hozzafuz(elso,ujelem(nehezseg,kerdes,A,B,C,D,valasz,kategoria));
}
And get rid of most of the lines in your .csv file; until your code works there is no point trying to process hundreds of lines, just use a few samples.
Other than that you need to do what we told you yesterday, and start using the debugger.