I asked a question yesterday about one of my search function not working correctly. I got the answer and it seems to work, however when I try to compile, I get an error "error C2040: 'Search' : 'PtrModel (PtrModel,char *)' differs in levels of indirection from 'int ()'" I have no idea on how to fix it, so if someone already saw this message, I would like some help please !
PtrModel Search(PtrModel list, char* val)
PtrModel CurPtr = list;
if(CurPtr->modelName == val)
CurPtr = CurPtr->next;