From owner-freebsd-bugs Sun May 7 00:17:30 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA08871 for bugs-outgoing; Sun, 7 May 1995 00:17:30 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id AAA08865 for ; Sun, 7 May 1995 00:17:14 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA13216; Sun, 7 May 1995 09:15:51 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA26341 for freebsd-bugs@FreeBSD.org; Sun, 7 May 1995 09:15:50 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id JAA07597 for freebsd-bugs@FreeBSD.org; Sun, 7 May 1995 09:03:03 +0200 From: J Wunsch Message-Id: <199505070703.JAA07597@uriah.heep.sax.de> Subject: Re: bin/386: *s field width specification doesn't seem to work for printf To: freebsd-bugs@FreeBSD.org (FreeBSD bugs list) Date: Sun, 7 May 1995 09:03:03 +0200 (MET DST) Reply-To: freebsd-bugs@FreeBSD.org (FreeBSD bugs list) In-Reply-To: <199505070445.OAA02207@godzilla.zeta.org.au> from "Bruce Evans" at May 7, 95 02:45:47 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 445 Sender: bugs-owner@FreeBSD.org Precedence: bulk As Bruce Evans wrote: > > printf(1) doesn't seem to do any more error checking than printf(3). Yes, but it should (since it's a user program, and not only a function provided to developers). > No, the 8 is the (minimum) field width. > > printf "%.*s" 8 foobarblatt I remembered this later, too. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)