0

Hi ! I am trying to write C program for a microcontroller (CCS compiler software), here is the part that I get error "Expect a close paren"

void Speech(char words);
void main()
{
   //INTRO OR GUIDED WORDS
   char hello[]="HELLO WORLD!\n";
   Speech(hello,0xC0); //it says error here
}
void Speech(char words,int position)
{
   char *textptr;
   textptr = words;
   WrCmd2Lcd(position);
   delay_ms(64);
   do
   {
   WrDat2Lcd(*textptr);
   *textptr++;
   }
   while(*textptr != '\n');
}

everything is okey until I add "int position" to the function Speech.
What is my wrong coding ?
Thanks !!!

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by smiles
0

You didn't change the Speech() prototype at the same time.
It still thinks the function expects only 1 parameter.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.