I guess it should be
bool helyesValasz(Adatok *eleje, char tipp, int kerdes)
{
Adatok *jelenlegi = eleje;
for (int i = 1; i < kerdes && jelenlegi != NULL; i++)
{
if ( (toupper(tipp) == toupper(jelenlegi->valasz) )
{
return true; }
jelenlegi = jelenlegi->kovetkezo;
}
return false;
}