scanf of backspace (0x08) and EOT(0x04)

927 views Asked by At

Can anybody say me which input I have to give on terminal to get 0x0804857d saved in the memory. The used function is scanf("%s", array) ic C language.

The problem is that 08 equals to Backspace which is impossible to input or 04 = EOT. I mustn't change the code...

Maybe its impossible, I don't know

Please help me...

1

There are 1 answers

0
Eugene Sh. On

You really should not use the scanf function to read binary data. Use read/fread instead.