Wrapper function to sprintf
atj at prism.UUCP
atj at prism.UUCP
Wed Feb 24 03:43:00 AEST 1988
Hi, I am having a little problem with developing a "wrapper" to sprintf.
What I wish to do is write a "dialog_box" routine that takes the
same parameters as printf. So, I have the following:
dialog_box(cs, args)
char *cs;
{
char buffer[512];
sprintf(buffer, cs, args);
.
.
.
}
/* anything obviously wrong with this? */
What happens is that only the first arg is formatted correctly.
This is on a Pyramid 9820, OSx 4.0 (BSD universe)
Thanks.
--
Alex T. Jenkins
Mirror Systems, Cambridge Massachusetts atj at mirror.TMC.COM
More information about the Comp.sys.pyramid
mailing list