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 !!!

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

Oh my stupid :(
Thanks so much !!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.