[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Yasr Questions, Optimizing Output for Speech -- corrected code

Umm about the code in my first reply, just noticed the while lacks a semicolon, oh well. Then again, it's about one in the morning here <smiley>.

Corrected version:

char* redundancyFilter(char* c, const char* p)
{ // c = current output, p = previous
  const char* cStart = c;
     if(*c == *p && isalpha(*c))
        *c = ' ';
  } while(++c && ++p);
  return cStart;
} // redundancyFilter

With kind regards Veli-Pekka Tätilä (vtatila@mail.student.oulu.fi)
Accessibility, game music, synthesizers and more:

Reply to: