TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: All
from: Owen Kaluza
date: 1995-09-18 21:16:04
subject: Variable arguments

I am writing a library of functions to include in my programs
with similar tasks to those in CONIO.H but using direct video
output.
I have struck problems in trying to write a version of printf().
My idea was to write a function called dprintf() which
accepted the arguments, used sprintf() to format them and store
in a buffer and then output the resulting string to the screen.
I don't know how the variable argument system works that printf()
uses so I am unable to pass the values on to sprintf().

Can anyone help?

Owen Kaluza

... "42? 7 and a half million years and all you can come up with is 42?!"
___ Blue Wave/QWK v2.12

--- Maximus 3.00
* Origin: The Software Parlour (3:635/544)
SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 711/401 409 410 430 510
SEEN-BY: 711/807 808 809 932 934 712/515 713/888 714/906 800/1 7877/2809
@PATH: 635/544 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.