Re: Hrm, problems with color and "strcat"

From: Michael Buselli (mhbusell@midway.uchicago.edu)
Date: 10/31/95


On Tue, 31 Oct 1995 chayward@bbs.sd68.nanaimo.bc.ca wrote:

> Heh, i have been having troubles with strcat's and color recently.
> I have read through color.doc, but it only shows sprintf's...
> Hrm...well heres an example:
> 
> strcat(buf, "...it glows with a bright aura");

Well, since you have no problems with sprintf, then I will tell you that
this statment is exactly equivalent to the one above:

sprintf(buf, "%s...it glows with a bright aura", buf);

Although I don't understand what you mean by a new buffer for color....

> i would have no problems if it was sprintf, but since its strcat...
> it has totally confused me.  I know i gotta make a new buffer for color,
> but not sure how/where i should put it.
> 
> Any help would be greatful
> 
> Chris

Michael Buselli
mhbusell@midway.uchicago.edu



This archive was generated by hypermail 2b30 : 12/07/00 PST