From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J." Subject: Re: printf format type, precision... Date: Sat, 3 Jul 2004 01:29:03 +0200 (CEST) Sender: linux-c-programming-owner@vger.kernel.org Message-ID: References: <20040703011040.17c21d51@tethys.solarsys.org> Reply-To: linux-c-programming@vger.kernel.org Mime-Version: 1.0 Return-path: In-Reply-To: <20040703011040.17c21d51@tethys.solarsys.org> List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org On Sat, 3 Jul 2004, wwp wrote: > Hello J., Hello wwp ;-) > On Sat, 3 Jul 2004 00:32:27 +0200 (CEST) "J." wrote: ... question/code > > Your comments and suggestions will be greatly appreciated.. > > You meant: > printf("%ld\n", result); > instead of: > printf("%ld\n", value); I am sorry, that was a sloppy mistake from my side while cutting and pasting the code into the message and making sure the code didn't got garbled... But I am affraid my problem/point still stands, it still prints the incorrect value. > What do you get, what do you expect? > > Regards, > > -- > wwp Thnkx.. ! J.