Mail Archives: djgpp/1998/07/20/17:31:33
I was wondering how to the ... to make a printf type function. My current
project uses a screen buffer, but the function I use to write strings to the
buffer can only use one string at a time. If I wanted to do a porintf type
effect, I have to do this:
char Text[81];
sprintf ( Text, "String A: %s, Number A: %d", StringA, NumB );
Print ( Text );
I would love to take out the business with Text[81] and sprintf. I just
need to know how to use the ... ( elipse was it called? ).
Sean Middleditch ( the baffled programmer )
of
AwesomePlay Productions
http://www.angelfire.com/biz/aweplay
aweplay AT hotmail DOT com
- Raw text -