From owner-freebsd-current Tue Jan 20 13:46:25 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA08878 for current-outgoing; Tue, 20 Jan 1998 13:46:25 -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 NAA08869 for ; Tue, 20 Jan 1998 13:46:18 -0800 (PST) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id OAA29024; Tue, 20 Jan 1998 14:46:13 -0700 (MST) Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp04.primenet.com, id smtpd028974; Tue Jan 20 14:46:05 1998 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id OAA29266; Tue, 20 Jan 1998 14:46:03 -0700 (MST) From: Terry Lambert Message-Id: <199801202146.OAA29266@usr06.primenet.com> Subject: Re: Nasty GCC bug? To: karpen@ocean.campus.luth.se (Mikael Karpberg) Date: Tue, 20 Jan 1998 21:46:02 +0000 (GMT) Cc: tlambert@primenet.com, current@FreeBSD.ORG In-Reply-To: <199801202125.WAA22867@ocean.campus.luth.se> from "Mikael Karpberg" at Jan 20, 98 10:25:16 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 > > %x expects and int, %lx expects a long. There is not one that expects > > a short or a char. > > Er... Terry? Tried "man sprintf"? :-) Naw, I was doing "man printf", which was getting me the shell printf. 8-). > none for int, l for long, h for short. Thus %hx. That works for a 'short'; what about my 'char'? VMS used to have a ":", I think, for something like "%02:2x" to truncate values larger than the field. Unfortunately, if the value was larger, it would put out asterisks instead of digits, to indicate that you had overflowed the thing. 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.