Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 97463 invoked from network); 14 May 2008 14:29:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2008 14:29:04 -0000 Received: (qmail 10704 invoked by uid 500); 14 May 2008 14:29:06 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 10641 invoked by uid 500); 14 May 2008 14:29:05 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 10630 invoked by uid 99); 14 May 2008 14:29:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2008 07:29:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2008 14:28:12 +0000 Received: from exchmail01.Blue.Roguewave.Com (exchmail01.blue.roguewave.com [10.22.129.22]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id m4EESVOv017793 for ; Wed, 14 May 2008 14:28:32 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: %{Ao}, %{Ad}, and %{Ax} directives Date: Wed, 14 May 2008 08:28:40 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: %{Ao}, %{Ad}, and %{Ax} directives Thread-Index: Aci1g5ZnzyqveqhfTe6KV8yoEkIK5gAS3a9A References: <482A7891.4070501@roguewave.com> From: "Eric Lemings" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 > -----Original Message----- > From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor > Sent: Tuesday, May 13, 2008 11:29 PM > To: dev@stdcxx.apache.org > Subject: Re: %{Ao}, %{Ad}, and %{Ax} directives >=20 > Eric Lemings wrote: > > =20 > > All of the test cases for the %{Ao}, %{Ad}, and %{Ax} directives (in > > 0.printf.cpp) specify a width (width of integer elements to=20 > be exact). > > Does this mean the width is required? I can't easily=20 > discern this by > > reading the code. >=20 > I don't know off the top of my head but from the output of > the program below (on x86 hardware) I'm guessing the default > width is 1 and the precision is taken to be the number of > initial non-zero elements of the array (each of the given > width). It might be worthwhile to enhance the test to > exercise this. Exactly what I was thinking. Brad. >=20 > $ cat t.cpp && ./t > #include >=20 > int main () > { > const int a [] =3D { 0x12345678, 0 }; > rw_printf ("%{Ax}\n", a); > } > 78,56,34,12 >=20 > Martin >=20