Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!gwyn@BRL.ARPA From: gwyn@BRL.ARPA (VLD/VMB) Newsgroups: net.lang.c Subject: Re: casts to (void) Message-ID: <441@brl-tgr.ARPA> Date: Mon, 5-Aug-85 15:16:19 EDT Article-I.D.: brl-tgr.441 Posted: Mon Aug 5 15:16:19 1985 Date-Received: Wed, 7-Aug-85 02:00:48 EDT Sender: news@brl-tgr.ARPA Lines: 11 "The printf function returns the number of characters transmitted, or a negative value if an output error was encountered." - ANSI X3J11 draft standard - similar wording in 1984 /usr/group Standard - similar wording in System V Interface Definition 4.2BSD printf returns 0, or EOF if an output error was encountered. If you are trying to write code that runs unmodified both in standard environments and on 4.2BSD (not recommended), then testing whether printf returns a negative value is sufficient.