From owner-freebsd-current Tue Jan 20 13:50:38 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09309 for current-outgoing; Tue, 20 Jan 1998 13:50:38 -0800 (PST) (envelope-from owner-freebsd-current) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09291 for ; Tue, 20 Jan 1998 13:50:16 -0800 (PST) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id OAA00269; Tue, 20 Jan 1998 14:50:13 -0700 (MST) Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp04.primenet.com, id smtpd000220; Tue Jan 20 14:50:04 1998 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id OAA29572; Tue, 20 Jan 1998 14:50:01 -0700 (MST) From: Terry Lambert Message-Id: <199801202150.OAA29572@usr06.primenet.com> Subject: Re: Nasty GCC bug? To: gurney_j@resnet.uoregon.edu Date: Tue, 20 Jan 1998 21:50:01 +0000 (GMT) Cc: tlambert@primenet.com, ache@nagual.pp.ru, current@FreeBSD.ORG In-Reply-To: <19980120133154.34281@hydrogen.nike.efn.org> from "John-Mark Gurney" at Jan 20, 98 01:31:54 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > actually... there is one for the short... didn't you read the man page? :) > o The optional character h, specifying that a following d, i, o, u, x, > or X conversion corresponds to a short int or unsigned short int ar- > gument, or that a following n conversion corresponds to a pointer to > a short int argument. > > but the char one is missing... I nominate "%bx"; it's be helpful for scanf(), as well, to indicate the pointer value points to a "byte" so you can give the address of a character variable. > > Also, my field width limits are being ignored. I kind of expected > > it to print out a field limit's worth of hex characters, starting at > > the lsb. > > yes... you specified minium field width.. therer is no way to limit > the number of characters outputed from x... You forgot the part about it sucking. ;-). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.