get the ascii number of a char into an int variable in c code example
Example 1: turn a char into an int in c
int x = character - '0';
Example 2: how to transform a char to ascii code in c
int a_as_int = (int) 'a';
int x = character - '0';
int a_as_int = (int) 'a';