Hi, I want to display all the text exist in this variable

char hello[]="HELLO WORLD!";

I use this function

void Speech(char *words,int position)
{
   char *textptr;
   textptr = words;
   WrCmd2Lcd(position);
   delay_ms(10);
   while(*textptr != '\0')
   WrDat2Lcd(*textptr++);
}

and call it in main function

Speech(hello,lcd_set_ddaddr+0x00);

but it only display "HELLO WORLD", no "!" sign, could you show me the way to show all the text in that variable "HELLO WORLD!"
Thanks :)

>but it only display "HELLO WORLD", no "!" sign
There's nothing in your code that would cause this. In other words, the loop is correct. I'd guess that you're reaching a limit on the display.