isalpha() checks for a single character (a char). You are looking for a function that checks whether all the chars in an array of chars are alphanumeric. Try creating yourself that function, which could run a loop through the array, and do the isalpha() check for each character.