printf("%#lx\n", strtoul(a, NULL, 16)); // => 0x96