Hi,
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;
  do
  {
     if(*c == *p && isalpha(*c))
        *c = ' ';
  } while(++c && ++p);
  return cStart;
} // redundancyFilter

With kind regards Veli-Pekka T�til� ([EMAIL PROTECTED])
Accessibility, game music, synthesizers and more:
http://www.student.oulu.fi/~vtatila




Reply via email to