Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu From: jonabbey@ccwf.cc.utexas.edu (Jonathan Abbey) Newsgroups: comp.unix.programmer Subject: vprintf/vfprintf/vsprintf Summary: Our system doesn't have them. How to simulate? Message-ID: <43453@ut-emx.uucp> Date: 30 Jan 91 20:52:01 GMT Sender: news@ut-emx.uucp Reply-To: jonabbey@ccwf.cc.utexas.edu (Jonathan Abbey) Organization: The University of Texas at Austin, Austin, Texass Lines: 19 Greetings.. I am trying to put together a package on our Alliant (apE 2.0), and have been unsucessful in doing so, as of the moment. One of the stumbling blocks is that a library in apE uses vfprintf and vsprintf, which are versions of fprintf and sprintf designed to work with the varargs macros. I have looked at the source for sprintf and fprintf on our system, and they use a common routine called doprnt(), which accepts arguments in terms of an argument list, such as would be constructed by the varargs macros. It seems what I can see that I should be able to simply substitute sprintf and fprintf for the varargs-specialized versions, but this does not seem to work. Any hints would be gratefully accepted. -- Jonathan Abbey (512) 472-2052 \ (512) 835-3081 jonabbey@ccwf.cc.utexas.edu \ broccol@csdfx8a.arlut.utexas.edu The University of Texas at Austin \ Applied Research Laboratories