How can I convert the Char array loop values to integers and assign to the interger array?

Code:
// write to the procInput array 
			if( atoi(processes[loop]) >= 1 && atoi(processes[loop]) <=9 )
			{
				procInput[x] = processes[loop]; 
				x++; 
			}


procInput is an integer arry and the processes is the char array

Thanks,
AzamSharp