There doesnt seem to be anything wrong with it, but for some reason my program is crashing when it gets to the following statement.

This is the declaration:
Code:
typedef		struct word{
	char name[25];
	int count;
	struct word *next;
	}	WRD;

and this is the line in my code it doesn't like:
Code:
if (tempName[j] != p->name[j])