In order for someone to help you, you MUST address your questions properly
I am working in c so input is of type char * and the input will contain charecters from "0" to "9" and "a" to "f" the output I want is the raw byte reprentation like for example in memory "A" is stored like \x41 where \x41 is ASCII code of A. Since my input is char * it will be stored in memory with their ASCII codes. For example if I enter "ABCD" it will be stored as \x41\x42\x43\x44 but I want something like \xAB\xCD in memory