I'm trying to make a program,it's almost done... but i'm stuck on an error message that I get. I would appreciate any help.
The error message:
error: conflicting types for ‘findEntry’
note: previous implicit declaration of ‘findEntry’...LINE 15
I get it for this code:
catalogPointer findEntry(catalogPointer head, char names[]) //ERROR HERE
{
catalogPointer p = head;
while ( (p != NULL ) && ( ( strcmp(p->short_name, names) != 0) || (strcmp(p->surname,names)!=0) ) )
{ p = p->next;
}
return p;
}
typedef struct catalog
{
char short_name[50];
char surname[50];
signed int amount;
char description[1000];
struct catalogue *next;
}catalog,*catalogPointer;
catalogPointer current;
catalogPointer head = NULL;
char name[50];
int main()
{....
catalogPointer find=findEntryToSearch(head,name); // LINE 15
....}