int wordCount(char wstring)
{
//int wsize = strlen(wstring[100]); //length of string
int wcheck = 0; //index for string position
int wcount = 0; //counter of words found
//increment char count until finding first alpha
while(!isalpha(wstring[wcheck]))
wcheck++;
For non-dynamic use this syntax: char wstring[WSIZE];
For dynamic use this instead: char *wstring = newchar[WSIZE];
int wordCount(char wstring) You missed a * : int wordCount(char *wstring)int wsize = strlen(wstring[100]); remove subscripting: int wsize = strlen(wstring);