Is it possible to enter single bytes in C through terminal?

Viewed 77

I have a fragment of code where something like this happens:

char buf_path[0x100];
*len = fs->read(0, buf_path, 0x1000);

What I want to do is to enter two NULL bytes (0x00), two \n bytes (0x0a), then "stackoverflow is wonderful", then two \t bytes, then \00.

However, I have never seen that this is possible through a terminal and I have to enter U if I mean 0x55, 2 if I mean 0x32 (all ASCII), so that for 0x00 I find nothing. Is it possible to enter bytes one by one for read(), like in Python with b''?

Thanks.

0 Answers
Related