Date: Wed, 12 Nov 1997 19:34:33 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Cc: adrian@virginia.edu, hackers@FreeBSD.ORG Subject: Re: A stylistic question... Message-ID: <199711121934.MAA04831@usr09.primenet.com> In-Reply-To: <199711121416.PAA07129@labinfo.iet.unipi.it> from "Luigi Rizzo" at Nov 12, 97 03:16:57 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > Why do yo feel that you need the "%s" though? Just make the > > "blah..." your format string. The parsing of the format string is pretty > > efficient. It reads a char and then switch()'s on it to what to do. > > the "%s" was added on the fly while composing the message and not > knowing the details of format string parsing. After your clarification, > then the only possible usefulness is that one must not worry to > escape % chars ... a very weak motivation indeed. Use puts(): it will also aboid the formatting code. Actually use "fputs()" and specify stderr, where usage messages are supposed be sent. The motivation in using "fprintf()" in that case is to specify stderr up front instead if as an after though that people might not reaad to. It's defensible that the stream should be the first, not last, argument to "fputs()". Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711121934.MAA04831>