Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!abvax!iccgcc!browns From: browns@iccgcc.decnet.ab.com (Stan Brown) Newsgroups: comp.lang.c Subject: Re: Printing plural forms. Message-ID: <3331.27c23984@iccgcc.decnet.ab.com> Date: 20 Feb 91 13:55:32 GMT References: <1991Feb19.104810.549@ZYX.SE> Followup-To: comp.lang.misc Lines: 16 In article <1991Feb19.104810.549@ZYX.SE>, arndt@zyx.ZYX.SE (Arndt Jonasson) writes: > We all have seen and, in various degrees, been irritated by texts such > as: > 1 files were copied > when it should have been: > 1 file was copied > > I'd like to know: when programming, how do you avoid such errors? printf("%d error%s copied\n", nfiles, nfiles?"s were":" was"); or printf("files copied: %d\n", nfiles); Hey--this is all my opinion, nobody else's. Rely on it at your peril. email: browns@iccgcc.decnet.ab.com Stan Brown, Oak Road Systems, Cleveland, Ohio, USA +1 216 371 0043