I'm trying to search a first name and a last name in a c phone book

/* *ppCur should point to the found entry or the successor if the entry is not found */
/* compare lastname and firstname fields to the variables of the same name to find the*/
/* appropriate entry */
/* return 1 if found and 0 if not */
int SearchName(NODE **ppCur, char *lastname, char *firstname)

anyone can give me any clue ?