2010/6/16 Lucio De Re <[email protected]>: > On Wed, Jun 16, 2010 at 11:11:09AM +0200, hugo rivera wrote: > >> printf("%lX\n", l); > > Would you try %luX? It 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
