Convert hex to ASCII by test

main(n){for(;~scanf("%X",&n);printf(n==10?"\\n\n":n<32|n>126?"\\x%02x":"%c",n));}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page