Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.lang.c Subject: Re: goto's and switch statements -- mild proposal Message-ID: <6409@brl-smoke.ARPA> Date: Sat, 5-Sep-87 04:37:39 EDT Article-I.D.: brl-smok.6409 Posted: Sat Sep 5 04:37:39 1987 Date-Received: Wed, 9-Sep-87 02:10:47 EDT References: <855@tjalk.cs.vu.nl> <2683@hoptoad.uucp> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 17 In article <732@spar.SPAR.SLB.COM> hunt@spar.UUCP (Neil Hunt) writes: >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. Returning exactly the same argument you supplied is more useful than telling you how much work the function did? >What about all my code where I do something like: > f = fopen(sprintf(buf, filename, seq_num++), ...); Already non-portable! >This seems like a gratuitous change to me ! Change to what? There are probably more int-returning *printf()s out there than (char *)-returning ones.