On Thu, May 09, 2002 at 06:13:30PM -0700, TandonMiir wrote:
> > if(*pointer == '{') /*this "{" is infact the color pointer on my mud*/
> > {
> > pointer++;
> > bufin++;
> > if(*pointer == 'z') /*blinking text reserved*/
>
> This is why. The if statements that are to different letters are to remove
> only certain types (in this case clear screen, blinking and beeping). If you
> want to remove ALL color, then set it to strip the second character
> following a { no matter what it is.
>
> And if you need help with that, here's the code.
>
> if(*pointer == '{')
> {
> *bufin = ' '; /*remove {*/
>
> pointer++;
> bufin++;
>
> *bufin = ' '; /*remove following char*/
> }
Be carefull not to remove the trailing null!
Edwin
--
Edwin Groothuis | Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions:
bash$ :(){ :|:&};: | http://www.FatalDimensions.org/