Very new to C and wondering what do i need to do to finish off three expected identifier errors

// char2int
// Converts from a character to an integer digit
// if character '0'..'9' convert to 0..9
// else if character 'A'..'F' convert to 10..15
// else convert to -1
int char2int(char digit);
{
//int char2IntResult = digit;
//char char2CharResult = digit;
//if the digit...