How can I convert an ascii character into an int in C? ... What about: int a_as_int = (int)'a'; ...
stackoverflow.com