Path: utzoo!mnetor!uunet!husc6!cca!mirror!prism!atj From: atj@prism.UUCP Newsgroups: comp.sys.pyramid Subject: Wrapper function to sprintf Message-ID: <232400003@prism> Date: 23 Feb 88 17:43:00 GMT Lines: 23 Nf-ID: #N:prism:232400003:000:538 Nf-From: prism.UUCP!atj Feb 23 12:43:00 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@mirror.TMC.COM