I am receiving serial data and placing it into a buffer.
In main I am using a pointer to view the elements of the buffer.
I work my way through the buffer using
volatile char *pointer;
pointer = pc_rx_buffer;
If the buffer created is,
What is the correct way to test whether my pointer is at the last element of my buffer, so that I can reset my pointer to the beginning of my buffer?
Im sure this is quite simple, but I'm through with scratching my head about this so I thought i would just ask.