From owner-freebsd-standards@FreeBSD.ORG Mon Jan 22 21:55:33 2007 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BE3C16A400 for ; Mon, 22 Jan 2007 21:55:33 +0000 (UTC) (envelope-from giecrilj@stegny.2a.pl) Received: from shark.2a.pl (shark.2a.pl [195.117.102.3]) by mx1.freebsd.org (Postfix) with ESMTP id 8AF9813C44B for ; Mon, 22 Jan 2007 21:55:32 +0000 (UTC) (envelope-from giecrilj@stegny.2a.pl) Received: from localhost (av.2a.pl [10.0.0.99]) by shark.2a.pl (Postfix) with ESMTP id 3A914B24E1 for ; Mon, 22 Jan 2007 22:32:04 +0100 (CET) Received: from shark.2a.pl ([10.0.0.3]) by localhost (av.2a.pl [10.0.0.99]) (amavisd-new, port 10024) with ESMTP id 81835-02 for ; Mon, 22 Jan 2007 22:30:42 +0100 (CET) Received: from POCZTOWIEC (2a-gts [217.153.29.142]) by shark.2a.pl (Postfix) with ESMTP id C3FD2B24C9 for ; Mon, 22 Jan 2007 22:31:49 +0100 (CET) From: =?iso-8859-2?Q?K=F8i=B9tof_=AEelechovski?= To: Date: Mon, 22 Jan 2007 22:31:50 +0100 Message-ID: <005301c73e6c$ba6ffd00$1a01080a@POCZTOWIEC> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: Acc+bLn/h6B+492BSSSe+yiphoIXhw== X-Virus-Scanned: amavisd-new at 2a.pl Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: return value of fprintf X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 21:55:33 -0000 The fprintf manual page says it is ANSI = C compatible and it returns the number of characters printed. The latter is correct: I get printf("abcd") =3D=3D 4 even under = >/dev/full. (uname is Interix on x86 ver. 3.5) However, the former is not: according to the ANSI C standard , = =A77.19.6.1/14, printf should return a negative value in this case. I would like to make it a problem report so I send it for public review first. Chris