Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!dciem!nrcaer!cognos!brianc From: brianc@cognos.uucp (Brian Campbell) Newsgroups: comp.lang.c Subject: Re: output formatting in C Message-ID: <1197@cognos.UUCP> Date: Wed, 29-Jul-87 11:44:48 EDT Article-I.D.: cognos.1197 Posted: Wed Jul 29 11:44:48 1987 Date-Received: Sat, 1-Aug-87 01:39:15 EDT References: <1085@gilsys.UUCP> <1227@cald80.UUCP> Reply-To: brianc@cognos.UUCP (Brian Campbell) Organization: Cognos Incorporated, Ottawa, Canada Lines: 17 In article <1227@cald80.UUCP> bob@cald80.UUCP (bob) writes: > > printf("%8.3f\n", fnum); > or > fprintf(fd, "%8.3f\n", fnum); Speaking of pet peeves ... this is one of mine! Why do so many programs use fd (which usually stands for "file descriptor") instead of something like fp (FILE pointer) as a parameter to functions which expect a pointer to a file structure? Its bad enough for the C library functions I KNOW expect a pointer, but for functions that someone else wrote (in another source file, of course) it only makes for harder-to-read code. -- Brian Campbell uucp: decvax!utzoo!dciem!nrcaer!cognos!brianc Cognos Incorporated mail: 3755 Riverside Drive, Ottawa, Ontario, K1G 3N3 (613) 738-1440 fido: sysop@163/8