Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site washu.UUCP Path: utzoo!linus!decvax!harpo!eagle!mhuxi!houxm!ihnp4!mtplx1!washu!eric From: eric@washu.UUCP Newsgroups: net.lang.c,net.unix-wizards,net.wanted Subject: Re: need info: %r in printf Message-ID: <164@washu.UUCP> Date: Thu, 13-Oct-83 13:21:40 EDT Article-I.D.: washu.164 Posted: Thu Oct 13 13:21:40 1983 Date-Received: Fri, 14-Oct-83 06:59:09 EDT References: <2151@yale-com.UUCP> Organization: Washington U. CSL, St. Louis Lines: 21 The C-compiler at BBN allowed the %R or %r construction, but I believe it was a local hack. You can get the same results as follows (although it is a bit less beautiful): char *ProgramName; warning(fmt,args) char *fmt; { fprintf(stderr,"%s: (warning) ",ProgramName); _doprnt(fmt, &args, stderr); /* this is the good line */ return(ferror(stderr)? EOF : 0); } On 4.1 at least, no special libs need be included. eric ..!ihnp4!washu!eric-- eric ..!ihnp4!washu!eric