Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830919); site mcvax.UUCP Path: utzoo!linus!philabs!mcvax!guido From: guido@mcvax.UUCP (Guido van Rossum) Newsgroups: net.lang.c,net.unix-wizards,net.wanted Subject: Re: need info: %r in printf Message-ID: <5420@mcvax.UUCP> Date: Thu, 13-Oct-83 08:02:34 EDT Article-I.D.: mcvax.5420 Posted: Thu Oct 13 08:02:34 1983 Date-Received: Fri, 14-Oct-83 22:54:14 EDT References: <2151@yale-com.UUCP> Organization: Math.Centre, Amsterdam Lines: 13 Since %r is - as far as I know - not standard, and the stated most common use (in general error message printers) is as easily programmed as follows: /* VARARGS 1 */ bug(fmt, a1, a2, ..., a10) char *fmt; { fprintf(stderr, "Error: "); fprintf(stderr, fmt, a1, a2, ..., a10); abort(); } it seems better if DECUS had never introduced it in the first place. The same is true for the "well-known hack" to pass a variable number of arguments!!!-- Guido van Rossum, Mathematical Centre, Amsterdam, {philabs,decvax}!mcvax!guido