bell character in array - control character

Hi,

Here is my code

char arr[3]={'\0'};
arr[0] = 0x01; //value ok 01 in the array
arr[1] = 0x07; // value is bell character i.e. \a
arr[2] = 0x03; // value Ok 03 in the array

But, I need the values in the array to be 0x01, 0x07 and 0x03.

How, can I disable the control character. Thanks in advance.
But, I need the values in the array to be 0x01, 0x07 and 0x03

That is exactly what your code does.

How, can I disable the control character.

Not sure what you mean.
I need to send the command to the printer which is like some hexadecimal values

0x01 0x02 0x07

But on sending the command value is changed. I assume so.

Bit confused :-)
Topic archived. No new replies allowed.