Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: printf format Message-ID: <248@sixhub.UUCP> Date: 26 Dec 89 23:12:20 GMT References: <5761@ozdaltx.UUCP> <987@nsi.UUCP> <1940@crdos1.crd.ge.COM> <479@bbxsda.UUCP> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Organization: *IX Public Access UNIX, Schenectady NY Lines: 11 One way to do any unsupported format is to implement a procedure which does what you want and returns a pointer to char which you can use with the %s format. If you want to call it more than once as an argument to a single printf call you have to pass in a buffer. Other wise you can use an internal buffer. -- bill davidsen - sysop *IX BBS and Public Access UNIX davidsen@sixhub.uucp ...!uunet!crdgw1!sixhub!davidsen "Getting old is bad, but it beats the hell out of the alternative" -anon