i attempted to use both the isalpha and isdigit functions in my code like below

if(tid[i] > 999 && tid[i] < 10000 && isdigit(tid[i]))

if(strlen(tname[i]) <NAME_SZ && isalpha(tname[i])

when i do this my outputfile becomes blank..