convertir un char en un int in c

int x = character - '0'; 
Nervous Problem