I have a string like this:
\"00c4\"
And I need to convert it to the numeric value that would be expressed by the literal:
0
#include int main() { const char *str = "0x00c4"; int i = 0; sscanf(str, "%x", &i); printf("%d = 0x%x\n", i, i); return 0; }