From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20100616100134.GC5363@fangle.proxima.alt.za> References: <20100616100134.GC5363@fangle.proxima.alt.za> Date: Wed, 16 Jun 2010 12:15:50 +0200 Message-ID: From: hugo rivera To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] portability question Topicbox-Message-UUID: 34409472-ead6-11e9-9d60-3106f5b1d025 2010/6/16 Lucio De Re : > On Wed, Jun 16, 2010 at 11:11:09AM +0200, hugo rivera wrote: > >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 printf("%lX\n", l); > > Would you try %luX? =C2=A0It may work better? no, or at least not as I intend. It produces '2868903936X' on 32 bit linux and '18446744072283488256X' on 64 bit. According to printf(3), an 'l' should work with both unsigned and signed long quantities. -- Hugo