Hi there,
I am writing program that reads data from a "const char * buf" in a loop.
If the content of this buffer is in ASCII-Code, it has to be displayed on the screen. If it is in binary mode, it doesn't make sense to display it.
So in this case, I want just to display some information about the buffer, for example its length.
The problem is: how to know if the content of the buffer is in binary mode or ASCII?
Thanx in advance!
I am writing program that reads data from a "const char * buf" in a loop.
If the content of this buffer is in ASCII-Code, it has to be displayed on the screen. If it is in binary mode, it doesn't make sense to display it.
So in this case, I want just to display some information about the buffer, for example its length.
The problem is: how to know if the content of the buffer is in binary mode or ASCII?
Thanx in advance!