Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!labrea!decwrl!spar!hunt From: hunt@spar.SPAR.SLB.COM (Neil Hunt) Newsgroups: comp.lang.c Subject: Re: goto's and switch statements -- mild proposal Message-ID: <732@spar.SPAR.SLB.COM> Date: Fri, 4-Sep-87 12:53:00 EDT Article-I.D.: spar.732 Posted: Fri Sep 4 12:53:00 1987 Date-Received: Sat, 5-Sep-87 18:21:50 EDT References: <855@tjalk.cs.vu.nl> <2683@hoptoad.uucp> <916@haddock.ISC.COM> <712@spar.SPAR.SLB.COM> <8394@mimsy.UUCP> Reply-To: hunt@spar.UUCP (Neil Hunt) Organization: Schlumberger Palo Alto Research - CASLAB Lines: 16 In article <8394@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >In article <712@spar.SPAR.SLB.COM> hunt@spar.SPAR.SLB.COM (Neil Hunt) writes >> char *sprintf(); > >Please do not declare sprintf `char *' if you can avoid it. It will >soon be `int', if it is not already `int' on your machine. And what, pray, will be the value returned by such an integer sprintf ? I suppose it will be the number of characters printed, or something else equally useless. What about all my code where I do something like: f = fopen(sprintf(buf, filename, seq_num++), ...); This seems like a gratuitous change to me ! Neil/.