Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!decvax!microsoft!uw-beaver!tektronix!ogcvax!omsvax!hplabs!sri-unix!gwyn@brl-vld From: gwyn%brl-vld@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: need info: %r in printf Message-ID: <12593@sri-arpa.UUCP> Date: Thu, 13-Oct-83 19:15:58 EDT Article-I.D.: sri-arpa.12593 Posted: Thu Oct 13 19:15:58 1983 Date-Received: Sat, 22-Oct-83 09:53:18 EDT Lines: 12 From: Doug Gwyn (VLD/VMB) printf %r was removed in UNIX System III. If I remember right, it was a means of embedding a format spec ((char *) corresponding to the %r in the main format spec) within the main format spec. One way to do this would be to assemble the "real" format spec with sprintf into a char buffer (maybe strcats would be easier), then use that buffer as the printf main format spec. If you have code that is using printf %r, you should also be alert for use of sprintf return value as a (char *); this was also changed in System III.