값이 이미있는 경우 Integer가있는 요소의 연결된 목록을 확인하고 싶습니다.C : 충돌 유형 오류
struct ListenElement{
int wert;
struct ListenElement *nachfolger;
};
struct ListenAnfang{
struct ListenElement *anfang;
};
struct ListenAnfang LA;
bool ckeckForInt(int value){
if (LA.anfang == NULL){
return 0;
}
return checkCurrent(LA.anfang, value);
}
bool checkCurrent(struct ListenElement* check, int value){
if (check->wert == value){
return true;
}
else if (check->nachfolger != NULL){
return checkCurrent(check->nachfolger, value);
}
else{
return false;
}
}
나는 checkCurrent 메서드에 대해 충돌하는 형식을 가져 오지만 찾을 수 없습니다.