Just slap an if statement in there.  "if (*++pointer == '\0' ) break;"
I'll let you figure out where to put it.  ;)

Rheede

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
TandonMiir
Sent: Tuesday, May 28, 2002 11:45 PM
To: [email protected]
Subject: Re: Limit color


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

Okay... Edwin.  Help me throw a protector in here to avoid trimming a
null...

Thanks,

Tandon


Reply via email to