From: utzoo!decvax!pur-ee!uiucdcs!uicsovax!hamilton
Newsgroups: net.unix-wizards
Title: Re: %r format item in some printf implem - (nf)
Article-I.D.: uiucdcs.712
Posted: Tue Sep 14 14:48:17 1982
Received: Thu Sep 16 02:14:37 1982

#R:sri-unix:-298900:uicsovax:5500025:000:604
uicsovax!hamilton    Sep 14 14:06:00 1982

i used to use %r printf format too, but after several system changes,
with attendant re-implementations of %r, and accidental recompilations
using the standard library, i have settled on using _doprnt() directly.
the example given by sri-unix!wales:
	oops (args)
	    char *args;
	{   fprintf (stderr, "ERROR: %r", &args);
	    exit (1);
	}
becomes:
	oops (fmt, args)
	    char *args;
	{   fprintf (stderr, "ERROR: ");
	    _doprnt (fmt, &args, stderr);
	    exit (1);
	}
with a minimum of extra work, you can stay portable...

    wayne hamilton ({decvax,ucbvax,harpo}!pur-ee!uiucdcs!uicsovax!hamilton)