hii
i want to compare 2 words... compare each letter
i don't want to use strcmp ..this is the function
Code:int WordCompare(char *pFirst,char *pSecond){ char *p1=pFirst,*p2=pSecond;int sum=0; if(WordLength(p1)!=WordLength(p2)) return 0; else while(isalpha(*p1)){ if(*p1==*p2) // <== here is my problem.. sum=sum+1; p1++; p2++; } if(sum==WordLength(p1)) return 1; }