lets say I have a string "\xfa\xbc\x53\x34\2c" I would like to pass this string in a c code as command line argument. I would like my C code to interpret first character of string as \xfa, second character as \xbc and so on(\xfa,\xbc are ascii vallues of non-printable chars).
my C code is like this:
int main(int argc,char* argv[]){
printf("%s",argv[1]);
}
$./a.out f(\x55\x56\x57\x58)
f() is some encoding scheme may-be
output should be UVWX(\x55 is ascii value of U)
I cannot change my C code I would like a way to pass a string as hexadecimal chars(I hope u understand my question, pardon me if I am confusing)