Created
July 29, 2019 22:51
-
-
Save parzibyte/a10988df1b92d0c5b5bdb78fe46c3a1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int caracterHexadecimalADecimal(char caracter) { | |
if (isdigit(caracter)) | |
return caracter - '0'; | |
return 10 + (toupper(caracter) - 'A'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment