Zmień char w int w c

int x = character - '0'; 
Nervous Problem