Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!td From: td@alice.UUCP (Tom Duff) Newsgroups: net.lang.c Subject: Re: C pre-processor and ANSI standard Message-ID: <2979@alice.UUCP> Date: Wed, 12-Sep-84 11:49:23 EDT Article-I.D.: alice.2979 Posted: Wed Sep 12 11:49:23 1984 Date-Received: Fri, 14-Sep-84 07:12:15 EDT References: <572@calgary.UUCP>, <8214@umcp-cs.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 12 The following macro prints n spaces with none of the problems described in previous suggestions #define spaces(n) printf("%*s", (n), "") Of course, this finesses the issues at hand (inadequate scope rules and syntactic glitches). It is hard for me to understand the mind of the code bummer that thinks that saving one function call (while still calling putchar n times) is worth breaking the language for, especially since this routine can't possibly be called at a high enough rate (it's execution speed is surely limited by I/O bandwidth) to justify any savings. You CAN make a case for inline procedures. This example is not the weapon with which to win the battle.