comment transformer un char en code ASCII en c

int a_as_int = (int) 'a';
Jolly Jay