Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pacbell!att-ih!ihnp4!inuxc!iuvax!pur-ee!uiucdcs!uxc.cso.uiuc.edu!ccvaxa!aglew From: aglew@ccvaxa.UUCP Newsgroups: comp.lang.c Subject: Re: Don't use Scanf() Message-ID: <28700027@ccvaxa> Date: 21 Mar 88 06:44:00 GMT References: <1185@ucsfcca.ucsf.edu> Lines: 12 Nf-ID: #R:ucsfcca.ucsf.edu:1185:ccvaxa:28700027:000:629 Nf-From: ccvaxa.UUCP!aglew Mar 21 00:44:00 1988 >One real stupidity I've seen many, many times is the >over-use of printf. The printf functions have their uses, >and they do their job quite well, but please know what these >uses are!! It would be nice if compilers could do a bit of processing, determine that printf("string with no formats") can be transformed into puts -- so that we can get on with the important job of solving problems, and not have to play games remembering which I/O function to use today (well, tcputs() is almost what I need, but its buffering conflicts with fooprintf() which is implicitly used by the error printing routine used in module xyzzy).