From owner-cvs-lib Mon Jan 12 19:17:20 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA19835 for cvs-lib-outgoing; Mon, 12 Jan 1998 19:17:20 -0800 (PST) (envelope-from owner-cvs-lib) Received: from freebsd1.cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA19789; Mon, 12 Jan 1998 19:16:58 -0800 (PST) (envelope-from jb@freebsd1.cimlogic.com.au) Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.8.7/8.8.7) id OAA04089; Tue, 13 Jan 1998 14:22:23 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199801130322.OAA04089@freebsd1.cimlogic.com.au> Subject: Re: cvs commit: src/lib/libmytinfo mkcapsort.c In-Reply-To: <199801130305.NAA04852@word.smith.net.au> from Mike Smith at "Jan 13, 98 01:35:17 pm" To: mike@smith.net.au (Mike Smith) Date: Tue, 13 Jan 1998 14:22:22 +1100 (EST) Cc: jb@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Mike Smith wrote: > > When printf'ing the result of pointer arithmetic, cast the result to > > long and use %ld, not %d. > > Is there a reason for doing it this way, rather than using %p? > (Just curious) %p gives an output in hex which changes the format of the generated file in this case. I thought I'd leave the format the same. Regards, -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.org CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137