i have an array of numbers i.e.: 9 2938932 29382332 what i want to do is remove these spaces so it can be joined. i have tried... isdigit(atoi(temp)) == 0) basically in this line of code temp is a char array in which i stored each individual number and apply atoi to convert it to a digit so i can use it with isdigit. Unfortunately it doesn't seem to work. When i put a space in the array i.e. ' ' it prints out a 0. any ideas?