The purpose of the function is to print the number of vowels in a linked list. The function compiles fine but will not print the correct number. I am not sure what is wrong. Any help would be great.
void vowels (NODE* pList)
int sum = 0;
pWalker = pList;
printf("c. The total number of vowels in the linked list is: ");
w = (pWalker->data.key);
if (w = a, e, i, o, u, A, E, I, O, U)
pWalker = pWalker->link;