Error: conflicting types

Professional

New Member
I am writing code in C for an assignment.This is the relevant code:\[code\] //operation: text(elem)xml_list *text(xml_list *elem){ if(isEmpty(elem)){ return Nil(); } return append(text1(head(elem)),text(tail(elem)));}//operation: text1(elem)xml_list *text1(xml_list *elem){ if(isText(elem)){ return Cons(elem,Nil()); } else{ return text(childeren(elem)); }}\[/code\]This gives me the error: \[code\]error: conflicting types for 'text1'xml_list *text1(xml_list *elem){\[/code\]I can't figure out the source of the problem. I have been working on this for 8 hours straight now, and I am kind of losing my mind over this. Please some one help me
 
Back
Top