Re: Hrm, problems with color and "strcat"

From: Glenn Campbell (glenn@cgc.ns.ca)
Date: 10/31/95


At 10:05 AM 10/31/95 PST, you 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");
>
>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
>
>
>
strcat simply concatenates the string supplied as an argument to the buffer
supplied, in your case its buf.  You can then use sprintf to dump the string
to the console with appropriate color specifications. Check
act.informative.c for examples of using sprintf with color.

Good Luck

Maistro/Malador/Grimlock/Groo
--
  _________________________________________________(_) 
 (_)  Glenn Campbell                         Voice:902-564-3660 (136)     |
 |  |  Computer Systems Specialist      Fax:902-562-6113                 |
 |  |  Canadian Coast Guard College  Voice Mail:902-565-6563       |
 |  |__________________________________________________)
 (_)



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