Original Post
Hi,
I have some basic questions about a char array that I use as a buffer.
When I create the buffer:
char buffer[512];
And later on I use the buffer to write data into it,
How do I know if buffer[0] for example, contains data or some garbage?
I need to know this so I know if the buffer is empty or contains some data.
Thanks.