C pet peeve - (nf)

utzoo!decvax!harpo!floyd!vax135!ariel!orion!lime!houti!hogpc!houxz!ihnp4!ixn5c!inuxc!pur-ee!uiucdcs!donchin utzoo!decvax!harpo!floyd!vax135!ariel!orion!lime!houti!hogpc!houxz!ihnp4!ixn5c!inuxc!pur-ee!uiucdcs!donchin
Thu Mar 24 04:30:27 AEST 1983


#R:linus:-1644100:uiucdcs:27600016:000:459
uiucdcs!donchin    Mar 23 22:51:00 1983

My pet peeve is the EOL terminator for printf commands.  Sure I
understand that it is possible to end up printing whole sections of
your program, but the error will be obvious at run-time and being able
to write
	printf("
		This is a title for a list of variables
	%d	%d	%d	%d	%d	%d",
	a,b,c,d,e,f)
would be very convenient and, I think, much more legible
than
	printf ("\n\t\tThis is a title for a list of variables\n\
		%d\t%d\t%d\t%d\t%d\t%d",a,b,c,d,e,f)



More information about the Comp.lang.c mailing list