Hi all,
I am sending a string to be displayed on an LCD. To detect end of string, I am using a while loop as follows:
Why is the program not exiting the while loop please?
I am sending a string to be displayed on an LCD. To detect end of string, I am using a while loop as follows:
Code:
void uart_string(unsigned char string[])
{
unsigned char index;
while (string[index] != '\0')
{
uart_send(string[index]);
index++;
}
}